Re: [PHP-DEV] 4.3.2RC1: patch to compile with libgd 2
nope. Was introduced by this late fix: http://cvs.php.net/diff.php/php4/ext/gd/gdttf.c?login=2r1=1.17r2=1.18ty=h and merged into 4.3.2RC1. Jani Taskinen wrote: Please try the latest STABLE cvs snapshot from http://snaps.php.net as this seems to be fixed already. -- -- Roberto Biancardi -- -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] 4.3.2RC1: patch to compile with libgd 2
--- ext/gd/gdttf.c.orig Sat Mar 15 22:38:28 2003 +++ ext/gd/gdttf.c Sat Mar 15 22:42:42 2003 @@ -744,9 +744,13 @@ if (tweencolorkey.pixel 0) { x3 = x2 + col; if (x3 = im-sx || x3 0) continue; +#if HAVE_LIBGD20 if (im-trueColor) { pixel = im-tpixels[y3][x3]; } else { +#else + { +#endif #if HAVE_LIBGD13 pixel = im-pixels[y3][x3]; #else -- -- Roberto Biancardi -- -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CLI behavior with -q switch
Jean-Michel Dault ha scritto: The problem is that the -q switch is still in the CLI for backward compatibility, but it breaks scripts because it does not change directories. I would strongly suggest that the -q switch would imply changing the working directory to that of the script, unless overriden by -C. i'am in the same condition of Jean-Michel (maintaning some php scripts) and i think this is a very good thing to do. another compatibility issue beetween cgi and cli is the fact that the cli version does not send error messages to stderr as the cgi version did. is this the intended behaviour ? thanks, -- -- Roberto Biancardi -- +39 02 22475231 -- [EMAIL PROTECTED] -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CLI behavior with -q switch
Roberto Biancardi ha scritto: another compatibility issue beetween cgi and cli is the fact that the cli version does not send error messages to stderr as the cgi version did. is this the intended behaviour ? not true. i had some mess with .ini files. sorry. -- -- Roberto Biancardi -- +39 02 22475231 -- [EMAIL PROTECTED] -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: darkelderpear
Use CVS to add MBox parsing class to PEAR. I already have access on the smarty-web CVS but I need access on Pear now. PLEASE NOTE: I really do not want another account called darkelderpear since I already have the account darkelder, so, I just want PEAR Cvs permission on darkelder account. Please, send me an email when you add my account. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Tip of the day: embedding php code in scripts
Maybe there is a easy way to embed PHP into Zope. On Wed, 22 May 2002 00:24:32 -0700 Jonathan Sharp [EMAIL PROTECTED] wrote: Also it could be usefull in creating a wrapped suid exec that would be completely self-contained... -js - Original Message - From: Stig S. Bakken [EMAIL PROTECTED] To: Preston L. Bannister [EMAIL PROTECTED] Cc: Stig S. Bakken [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 20, 2002 4:38 PM Subject: RE: [PHP-DEV] Tip of the day: embedding php code in scripts On Mon, 2002-05-20 at 19:21, Preston L. Bannister wrote: From: Stig S. Bakken [mailto:[EMAIL PROTECTED]] Did anyone come up with this one before or do I have a first post? :-) #!/bin/sh exec php -d output_buffering=1 $0 $@ ?php ob_end_clean(); print Hello World!\n; ? Or the shorter (and faster) version: #!/usr/local/bin/php -d output_buffering=1 ?php ob_end_clean(); print Hello World!\n; ? Or perhaps you had something else in mind? Uhm, well, you could just drop the output buffering in this case. I had the specific embed in sh script case in mind. I believe most (all?) modern Unix implementations do #! handling in the kernel's exec() function, so you avoid the /bin/sh startup. Sure. The point is that you may not know the real path to the PHP executable, or you want to run PHP from a file that is processed with sh for some other reason. Another solution could be #!/usr/bin/env php, all of the systems I've tested with had env in /usr/bin, but it's still not as cool :-) - Stig -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php Atenciosamente, - Roberto Bertó, e-Consultor Cel:51 91169628 email: [EMAIL PROTECTED] UNDER DEVELOPMENT - http://www.UNDER.com.br Tel/FAX: 51 32270599 Rua Duque de Caxias, 1594 apto. 204 CEP 900010-281 - Porto Alegre - RS - Atenciosamente, - Roberto Bertó, e-Consultor Cel:51 91169628 email: [EMAIL PROTECTED] UNDER DEVELOPMENT - http://www.UNDER.com.br Tel/FAX: 51 32270599 Rua Duque de Caxias, 1594 apto. 204 CEP 900010-281 - Porto Alegre - RS - msg38326/pgp0.pgp Description: PGP signature
[PHP-DEV] Feature Request
Can you take a look on bug #12669 and #14712? Its about auto-globals user definied variables - ie: user can set some variables to be global in all scopes, allways global. Quick link: http://bugs.php.net/bug.php?id=12669 Atenciosamente, - Roberto Bertó, e-Consultor Cel:51 91169628 email: [EMAIL PROTECTED] UNDER DEVELOPMENT - http://www.UNDER.com.br Tel/FAX: 51 32270599 Rua Duque de Caxias, 1594 apto. 204 CEP 900010-281 - Porto Alegre - RS - msg38332/pgp0.pgp Description: PGP signature
[PHP-DEV] CVS account
I'm new here and I cant login in CVS account. I changed my password at master.php.net and the account looks not working. I'm doing something wrong? export CVS_RSH=ssh cvs -d:ext:[EMAIL PROTECTED]:/repository co php4 Roberto. msg38312/pgp0.pgp Description: PGP signature
[PHP-DEV] CVS Account Request: darkelder
Mainly I'll help Smarty to make their Site -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Bug #14778: Function self-caller crash php
From: [EMAIL PROTECTED] Operating system: windows ME PHP version: 4.1.0 PHP Bug Type: Reproducible crash Bug description: Function self-caller crash php It's not a Bug, but crash PHP. Maybe it's proposital way to prevent a type of DoS. Sometimes it's usefull or it's need use a function that call itself. An example is a recursive array routine. ?PHP function crash($foo) { crash($foo); } crash(foo); ? What I like to show is: windows crash PHP when this code run. This is expected or the right is show a Fatal Error mensage? -- Edit bug report at: http://bugs.php.net/?id=14778edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: Shootout
August Zajonc wrote: - Original Message - From: Sterling Hughes [EMAIL PROTECTED] The point, if you'd really like to know is that PHP is *not* optimized to do matrix operations (which is one of the examples), or infinitely recursive loops (I'm not even addressing the code at this point) -- but that makes little difference in a real world script. The real world is made up of method calls, array access, counts, echo's, hashes, string concatenation, file i/o. This benchmark tests those. nobody that knows what is doing will never end up writing such calculus intensive code in PHP! also i want to point you that in some tests, much more related to the usefulness of a scripting language (array hashing and string concats), php performs pretty well, better than java. The real world is also made of web servers, databases, HTML, esoteric API, people learning how to build a program: this kind of benchmark does not take in account this. If this benchmark had some significance everybody will start tomorrow to write web application in that obscure language *mercury*, so strong at nesting loops. regards, -- Roberto Biancardi -- [EMAIL PROTECTED] -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14703: PHP Crash when print_r (get_defined_constants());
From: [EMAIL PROTECTED] Operating system: windows ME PHP version: 4.1.0 PHP Bug Type: Reproducible crash Bug description: PHP Crash when print_r (get_defined_constants()); ?PHP print_r (get_defined_constants()); ? I get the binary distr. of PHP and I use APACHE and MySQL. When I run a Script with this routine Windows CLose PHP. -- Edit bug report at: http://bugs.php.net/?id=14703edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14704: phpversion (bool Float) request
From: [EMAIL PROTECTED] Operating system: windows ME PHP version: 4.1.0 PHP Bug Type: Feature/Change Request Bug description: phpversion (bool Float) request Look: ?PHP // return 4.1 print (float)PHP_VERSION; $v = 4.1.4; // return 4.1 print (float)$v; ? If someone wants to compare the versions of PHP, so he need to create a preg-like routine to change the string of PHP version to double numbers. So, you can rewrite in C the phpversion to function phpversion($withFloat = FALSE) { if ($withFloat == TRUE) { return 4.14; } return 4.1.4; } So, if someone want a float number, he will call phpversion(1); ?PHP // output 4.14 print phpversion(1); // output 4.1.4 print phpversion(); ? Thanx. -- Edit bug report at: http://bugs.php.net/?id=14704edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14712: allways global scope
From: [EMAIL PROTECTED] Operating system: all PHP version: 4.1.0 PHP Bug Type: Feature/Change Request Bug description: allways global scope Will be cool if a new language constructor set global scope to a variable, like $_REQUEST, $_POST, etc. This forever global constructor should work with every type of variable (array,object,resource,string, etc) So, ?PHP $smarty-template_dir = /lib/here/; forever $smarty; function something() { // output /lib/here; print $smarty-template_dir; } // output /lib/here; print $smarty-template_dir; class foo { function other () { // output /lib/here; print $smarty-template_dir; } } Thanx. -- Edit bug report at: http://bugs.php.net/?id=14712edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] bug #12029,#12069, MySQL: Unable to save result set in
I was hit by this too, is something related with the libmysql shipped with php (may be when used with older versions of mysqld). It disapperead configuring with: --with-mysql=__your_sql_home__. This bug is in every version i tried: 4.0.5, 4.0.6 and latest cvs. Attached a patch that definitely solves the problem for me (without the need to compile with --with-mysql). Ciao, Roberto. -- Roberto Biancardi -- +39 2 22475231 -- [EMAIL PROTECTED] -- --- orig/php_mysql.cSun Dec 9 00:30:05 2001 +++ ./php_mysql.c Sat Dec 8 23:43:28 2001 @@ -983,7 +983,13 @@ mysql_result=mysql_store_result(mysql-conn); } if (!mysql_result) { - if (PHP_MYSQL_VALID_RESULT(mysql-conn)) { /* query should have returned rows */ + /* +* query should have returned rows ? +* to be on the safe side and avoid unwanted WARNINGS on +* UPDATEs i borrowed the logic from the mysql(1) client. +*/ + if ( (use_store == MYSQL_STORE_RESULT mysql_error(mysql-conn)[0]) + || (use_store == MYSQL_USE_RESULT +PHP_MYSQL_VALID_RESULT(mysql-conn)) ) { php_error(E_WARNING, MySQL: Unable to save result set); RETURN_FALSE; } else { -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Fw: [PHP] [PHP-ES] (roberto celestino)MCAL! set-up.
Sorry, i send it to the gral list, but, as ever, somebody say nothing. ..Thanks, i re-send to you, because i hope that you can halp me - Original Message - From: "Celestino Roberto Alejandro" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 08, 2001 10:53 AM Subject: [PHP] [PHP-ES] (roberto celestino)MCAL! set-up. Dear's partners... I download the source of the Mcal library and Drivers, and i have found a doubt, because when i compile it, ever, show an error that can't give me compile, then, i cant have correctly installed this library... ..I make the SF (structure of files), that this describe in its README, in this say ...make.. ../libmcal/ ../libmcal/icap/ ../libmcal/dummy/ ..Are icap an dummy drivers for MCAL (Modular Calendar Acces Library), and when i compile (also describe in README) i give the option ./configure --with-icap ./ make (failed) ./ make install (also failed, obvious) the error that i found is like the next: /*OUTPUT*/ gcc -O0 -Wall -g -I. -c mcal.c In file included from mcal.c:37: drivers.c:1: parse error before `-' drivers.c:1: stray '\' in program drivers.c:1: stray '\' in program mcal.c: In function `cal_getdriver': mcal.c:68: `driver_registry' undeclared (first use in this function) mcal.c:68: (Each undeclared identifier is reported only once mcal.c:68: for each function it appears in.) *** Error code 1 make: Fatal error: Command failed for target `mcal.o' /*\OUTPUT*/ ..and i have another doubt?, why if i want compile the driver alone (Ex: icap), this also give some errors...? Thanks, and Sorry..! I'm running in a Solaris 2.7, thanks! Celestino, Roberto Alejandro Argentina, Universidad Nacional de la Matanza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Not a Bug but Please...CVS doubt!?
Hello, partners... sorry for interrupt the grate list with this message, i need know... ..how i can get the cvs account? ...Thanks..! ...and Where i can find info about modules for php3? ..Celestino Roberto
[PHP-DEV] (robert)How i can get a CVS account?
Please, and sorry...but how i can get a CVS account, for going put my project in it?
[PHP-DEV] (robert)HELLO...all doubts about XML/APACHE/PERL/PHP/MOD
Hello...'m new in this list,and for this...Hello Hello to all peopleand begin, with my first doubt.We (I, a friend, for the our job, need make application with xml, =better say, migrate a current system of news, to the structured of XML, =and procceses it with XLS, for generate directly the out, ..but, what is =the problem? (: matter)!!..we are developing with PHP3!, and reading the =specification only after vsion4 support XLS, with Sablatron, and Expat =as parser of xml...but, i think? Why i can do this? if, the chief dont =like Perl...(: i suggest he, that we can make an script that take the =file xml, etc..and generate the out, with an interface with php =script...but say no!...and after, try make with php...then i think in =can i install PHP4 and PHP3 and run together?...HOW?...Somebody know how work Xalan(: xml.apache.org...?)..How i can make a module for PHP3?(:_not PHP4!)Thanks...and=20..GOOD LUCK.Roberto Celestino.