#36909 [Opn]: Compile Fails
ID: 36909 User updated by: alain dot russell at blackpepper dot co dot nz Reported By: alain dot russell at blackpepper dot co dot nz Status: Open Bug Type: Compile Failure Operating System: Mac OS X PHP Version: 5.1.3RC1 New Comment: Any other info I can provide ? Previous Comments: [2006-03-29 22:49:34] alain dot russell at blackpepper dot co dot nz http://utility.blackpepper.co.nz/config.log [2006-03-29 22:44:53] [EMAIL PROTECTED] Could you plz put also your config.log there? [2006-03-29 14:03:32] alain dot russell at blackpepper dot co dot nz On closer look you are right .. Different error but it still references the same thing .. ld: Undefined symbols: _lchown make: *** [sapi/cgi/php] Error 1 [2006-03-29 13:53:17] alain dot russell at blackpepper dot co dot nz really .. last line .. Either way the make still failed ? ld: Undefined symbols: _lchown [2006-03-29 13:46:25] [EMAIL PROTECTED] I can't find the same error in the log. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/36909 -- Edit this bug report at http://bugs.php.net/?id=36909edit=1
#36930 [NEW]: Calling is_array on ArrayObject problem (even when casting)
From: ante at abstraktmedia dot com Operating system: Win XP PHP version: 5.1.2 PHP Bug Type: SPL related Bug description: Calling is_array on ArrayObject problem (even when casting) Description: OK... I'm using ArrayObject quite a lot and I experienced something which is not logical... If I have $arrayObj = new ArrayObject(Array(Test)) function is_array() returns false which is not ok in the first place...but never mind...we'll cast it to array so we use if(is_array((array) $arrayObj)) . but the problem is what if $arrayObj is not Array...what if it's null or string? casting to array will make the function return true even if the variable is null That's the real problem Shor story...I cannot use is_array on ArrayObject if I don't cast that object to a normal array..But if I use casting and variable is for example string then is_array will return true when it should return false Reproduce code: --- Logicaly: $arrayObj = new ArrayObject(Array(Test)); //we don't use casting!! if(is_array($arrayObj)) ... should return TRUE but because of the internal workings of PHP we have to convert ArrayObject to Array before sending it to is_array function... But what if our Array is String actually...??or Null??? Because we HAVE TO cast that ArrayObject before sending it to is_array it will also cast String or anything else to an Array and therefore function will return TRUE... $arrayObj = new ArrayObject(Array(Test)); //$arrayObj = null; if(is_array((array) $arrayObj)) { print(Is array!); } else { print(Not array!); } Now try uncommeting second line and commenting first... -- Edit bug report at http://bugs.php.net/?id=36930edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36930r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36930r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36930r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36930r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36930r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36930r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36930r=needscript Try newer version:http://bugs.php.net/fix.php?id=36930r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36930r=support Expected behavior:http://bugs.php.net/fix.php?id=36930r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36930r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36930r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36930r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36930r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36930r=dst IIS Stability:http://bugs.php.net/fix.php?id=36930r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36930r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36930r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36930r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36930r=mysqlcfg
#36930 [Opn-Bgs]: Calling is_array on ArrayObject problem (even when casting)
ID: 36930 Updated by: [EMAIL PROTECTED] Reported By: ante at abstraktmedia dot com -Status: Open +Status: Bogus Bug Type: SPL related Operating System: Win XP PHP Version: 5.1.2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php if (($foo instanceof ArrayObject) || is_array($foo)) Previous Comments: [2006-03-31 11:46:51] ante at abstraktmedia dot com Description: OK... I'm using ArrayObject quite a lot and I experienced something which is not logical... If I have $arrayObj = new ArrayObject(Array(Test)) function is_array() returns false which is not ok in the first place...but never mind...we'll cast it to array so we use if(is_array((array) $arrayObj)) . but the problem is what if $arrayObj is not Array...what if it's null or string? casting to array will make the function return true even if the variable is null That's the real problem Shor story...I cannot use is_array on ArrayObject if I don't cast that object to a normal array..But if I use casting and variable is for example string then is_array will return true when it should return false Reproduce code: --- Logicaly: $arrayObj = new ArrayObject(Array(Test)); //we don't use casting!! if(is_array($arrayObj)) ... should return TRUE but because of the internal workings of PHP we have to convert ArrayObject to Array before sending it to is_array function... But what if our Array is String actually...??or Null??? Because we HAVE TO cast that ArrayObject before sending it to is_array it will also cast String or anything else to an Array and therefore function will return TRUE... $arrayObj = new ArrayObject(Array(Test)); //$arrayObj = null; if(is_array((array) $arrayObj)) { print(Is array!); } else { print(Not array!); } Now try uncommeting second line and commenting first... -- Edit this bug report at http://bugs.php.net/?id=36930edit=1
#36930 [Bgs]: Calling is_array on ArrayObject problem (even when casting)
ID: 36930 User updated by: ante at abstraktmedia dot com Reported By: ante at abstraktmedia dot com Status: Bogus Bug Type: SPL related Operating System: Win XP PHP Version: 5.1.2 New Comment: As you wish Mike but this is just very very bad workaroundthis checking should be done internaly not on user end... Previous Comments: [2006-03-31 11:56:21] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php if (($foo instanceof ArrayObject) || is_array($foo)) [2006-03-31 11:46:51] ante at abstraktmedia dot com Description: OK... I'm using ArrayObject quite a lot and I experienced something which is not logical... If I have $arrayObj = new ArrayObject(Array(Test)) function is_array() returns false which is not ok in the first place...but never mind...we'll cast it to array so we use if(is_array((array) $arrayObj)) . but the problem is what if $arrayObj is not Array...what if it's null or string? casting to array will make the function return true even if the variable is null That's the real problem Shor story...I cannot use is_array on ArrayObject if I don't cast that object to a normal array..But if I use casting and variable is for example string then is_array will return true when it should return false Reproduce code: --- Logicaly: $arrayObj = new ArrayObject(Array(Test)); //we don't use casting!! if(is_array($arrayObj)) ... should return TRUE but because of the internal workings of PHP we have to convert ArrayObject to Array before sending it to is_array function... But what if our Array is String actually...??or Null??? Because we HAVE TO cast that ArrayObject before sending it to is_array it will also cast String or anything else to an Array and therefore function will return TRUE... $arrayObj = new ArrayObject(Array(Test)); //$arrayObj = null; if(is_array((array) $arrayObj)) { print(Is array!); } else { print(Not array!); } Now try uncommeting second line and commenting first... -- Edit this bug report at http://bugs.php.net/?id=36930edit=1
#36931 [NEW]: php-5.1.3RC2/ext/standard/info.c
From: rainer dot wiener at schlund dot de Operating system: GNU Linux Debian 3.0 PHP version: 5.1.3RC2 PHP Bug Type: Compile Failure Bug description: php-5.1.3RC2/ext/standard/info.c Description: Configure options: CONFIG_PHP = --program-suffix=5 --with-pear=/usr/local/lib/php5 --with-config-file-path=/usr/local/lib/php5 --with-libxml-dir=/usr/local/php5 --without-sqlite --with-config-file-scan-dir=. --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-soap --with-xsl=/usr/local/php5 --enable-mbstring=all --with-curl=/usr/local/php5 --with-mcrypt=/usr/local/php5 --with-gd --with-pdo-mysql=/usr/local/mysql --with-freetype-dir --with-libxml-dir=/usr/local/php5 --with-mysql=/usr/local/mysql --with-zlib --enable-debug=no --enable-safe-mode=no --enable-discard-path=no --with-png-dir=/usr/lib --enable-track-vars --with-db --with-gdbm --enable-force-cgi-redirect --with-ttf=/usr/ --enable-ftp --enable-dbas --enable-memory-limit --enable-calendar --enable-wddx --with-jpeg-dir=/usr/src/kundenserver/jpeg-6b --enable-bcmath --enable-gd-imgstrttf --enable-shmop --enable-mhash --with-mhash=/usr/src/kundenserver/mhash-0.8.9/ --with-openssl --enable-xslt --with-xslt-sablot --with-dom --with-dom-xslt --with-dom-exslt --with-imap --with-iconv=/usr/local --with-bz2 --with-gettext --enable-exif --with-idn gcc --version : 2.95.4 compilation failt with this output: Reproduce code: --- /bin/sh /kunden/homepages/neu/php/php-5.1.3RC2/apache-build/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/standard/ -I/kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/ -DPHP_ATOM_INC -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/include -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/main -I/kunden/homepages/neu/php/php-5.1.3RC2 -I/usr/local/php5/include/libxml2 -I/usr/local/ssl/include -I/usr/local/php5/include -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/ext/date/lib -I/kunden/homepages/neu/php/php-5.1.3RC2/ext/date/lib -I/usr/include/freetype2 -I/usr/local/include -I/usr/include/c-client -I/kunden/homepages/neu/php/php-5.1.3RC2/ext/mbstring/oniguruma -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/ext/mbstring/oniguruma -I/kunden/homepages/neu/php/php-5.1.3RC2/ext/mbstring/libmbfl -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/ext/mbstring/libmbfl -I/kunden/homepages/neu/php/php-5.1.3RC2/ext/mbstring/libmbfl/mbfl -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/TSRM -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/Zend -I/kunden/homepages/neu/php/php-5.1.3RC2/main -I/kunden/homepages/neu/php/php-5.1.3RC2/Zend -I/kunden/homepages/neu/php/php-5.1.3RC2/TSRM -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/ -I/usr/local/include -O2 -Wall -fsigned-char -fno-inline -prefer-non-pic -c /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c -o ext/standard/info.lo /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c: In function `php_info_write_wrapper': /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:66: parse error before `int' /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:69: `written' undeclared (first use in this function) /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:69: (Each undeclared identifier is reported only once /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:69: for each function it appears in.) /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:69: `elem_esc' undeclared (first use in this function) /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:69: `new_len' undeclared (first use in this function) /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:74: warning: control reaches end of non-void function make[1]: *** [ext/standard/info.lo] Error 1 make[1]: Leaving directory `/homepages/neu/php/php-5.1.3RC2/apache-build' make: *** [build-apache-stamp] Error 2 -- Edit bug report at http://bugs.php.net/?id=36931edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36931r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36931r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36931r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36931r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36931r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36931r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36931r=needscript Try newer version:http://bugs.php.net/fix.php?id=36931r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36931r=support Expected behavior:http://bugs.php.net/fix.php?id=36931r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36931r=notenoughinfo Submitted twice:
#36931 [Opn-Csd]: php-5.1.3RC2/ext/standard/info.c
ID: 36931 Updated by: [EMAIL PROTECTED] Reported By: rainer dot wiener at schlund dot de -Status: Open +Status: Closed Bug Type: Compile Failure Operating System: GNU Linux Debian 3.0 PHP Version: 5.1.3RC2 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: [2006-03-31 13:04:57] rainer dot wiener at schlund dot de Description: Configure options: CONFIG_PHP = --program-suffix=5 --with-pear=/usr/local/lib/php5 --with-config-file-path=/usr/local/lib/php5 --with-libxml-dir=/usr/local/php5 --without-sqlite --with-config-file-scan-dir=. --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-soap --with-xsl=/usr/local/php5 --enable-mbstring=all --with-curl=/usr/local/php5 --with-mcrypt=/usr/local/php5 --with-gd --with-pdo-mysql=/usr/local/mysql --with-freetype-dir --with-libxml-dir=/usr/local/php5 --with-mysql=/usr/local/mysql --with-zlib --enable-debug=no --enable-safe-mode=no --enable-discard-path=no --with-png-dir=/usr/lib --enable-track-vars --with-db --with-gdbm --enable-force-cgi-redirect --with-ttf=/usr/ --enable-ftp --enable-dbas --enable-memory-limit --enable-calendar --enable-wddx --with-jpeg-dir=/usr/src/kundenserver/jpeg-6b --enable-bcmath --enable-gd-imgstrttf --enable-shmop --enable-mhash --with-mhash=/usr/src/kundenserver/mhash-0.8.9/ --with-openssl --enable-xslt --with-xslt-sablot --with-dom --with-dom-xslt --with-dom-exslt --with-imap --with-iconv=/usr/local --with-bz2 --with-gettext --enable-exif --with-idn gcc --version : 2.95.4 compilation failt with this output: Reproduce code: --- /bin/sh /kunden/homepages/neu/php/php-5.1.3RC2/apache-build/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/standard/ -I/kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/ -DPHP_ATOM_INC -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/include -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/main -I/kunden/homepages/neu/php/php-5.1.3RC2 -I/usr/local/php5/include/libxml2 -I/usr/local/ssl/include -I/usr/local/php5/include -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/ext/date/lib -I/kunden/homepages/neu/php/php-5.1.3RC2/ext/date/lib -I/usr/include/freetype2 -I/usr/local/include -I/usr/include/c-client -I/kunden/homepages/neu/php/php-5.1.3RC2/ext/mbstring/oniguruma -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/ext/mbstring/oniguruma -I/kunden/homepages/neu/php/php-5.1.3RC2/ext/mbstring/libmbfl -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/ext/mbstring/libmbfl -I/kunden/homepages/neu/php/php-5.1.3RC2/ext/mbstring/libmbfl/mbfl -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/TSRM -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/Zend -I/kunden/homepages/neu/php/php-5.1.3RC2/main -I/kunden/homepages/neu/php/php-5.1.3RC2/Zend -I/kunden/homepages/neu/php/php-5.1.3RC2/TSRM -I/kunden/homepages/neu/php/php-5.1.3RC2/apache-build/ -I/usr/local/include -O2 -Wall -fsigned-char -fno-inline -prefer-non-pic -c /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c -o ext/standard/info.lo /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c: In function `php_info_write_wrapper': /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:66: parse error before `int' /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:69: `written' undeclared (first use in this function) /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:69: (Each undeclared identifier is reported only once /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:69: for each function it appears in.) /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:69: `elem_esc' undeclared (first use in this function) /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:69: `new_len' undeclared (first use in this function) /kunden/homepages/neu/php/php-5.1.3RC2/ext/standard/info.c:74: warning: control reaches end of non-void function make[1]: *** [ext/standard/info.lo] Error 1 make[1]: Leaving directory `/homepages/neu/php/php-5.1.3RC2/apache-build' make: *** [build-apache-stamp] Error 2 -- Edit this bug report at http://bugs.php.net/?id=36931edit=1
#36932 [NEW]: undefined function openssl_pkey_new()
From: fred at mycommlog dot com Operating system: Win XP Home PHP version: 5.1.2 PHP Bug Type: Class/Object related Bug description: undefined function openssl_pkey_new() Description: Trying to retrofit XP home with features missing/not included excet in Pro. Using Apache 2.0 with mod_ssl and mod_net as well as the mod_php included with the php 5.12 release. Docs say I must recompile to get ssl support in php while a note on the same page suggests including a dll from the ext/ direcory. I have modified php.ini to include the extension lib but still get the error. Is there a way to enable ssl support in php without recompiling on windows? It is fairly unfeasible for me to use gpp/gcc for windows at this time. I need a simpler solution. Reproduce code: --- print bGenerating new key.../bbr/; $privkey = openssl_pkey_new(); while (($error = openssl_error_string()) !== false) { echo $error . br/\n; $errorCount++; } Expected result: this code should generate a 128 bit private key Actual result: -- Fatal error: Call to undefined function openssl_pkey_new() in C:\inetpub\wwwroot\php-ca\modules\setup\create.php on line 39 -- Edit bug report at http://bugs.php.net/?id=36932edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36932r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36932r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36932r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36932r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36932r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36932r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36932r=needscript Try newer version:http://bugs.php.net/fix.php?id=36932r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36932r=support Expected behavior:http://bugs.php.net/fix.php?id=36932r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36932r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36932r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36932r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36932r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36932r=dst IIS Stability:http://bugs.php.net/fix.php?id=36932r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36932r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36932r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36932r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36932r=mysqlcfg
#36932 [Opn-Bgs]: undefined function openssl_pkey_new()
ID: 36932 Updated by: [EMAIL PROTECTED] Reported By: fred at mycommlog dot com -Status: Open +Status: Bogus -Bug Type: Class/Object related +Bug Type: OpenSSL related Operating System: Win XP Home PHP Version: 5.1.2 New Comment: In order to enable this module on a Windows environment, you must copy libeay32.dll from the DLL folder of the PHP/Win32 binary package to the SYSTEM32 folder of your windows machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32) http://php.net/openssl Previous Comments: [2006-03-31 13:13:16] fred at mycommlog dot com Description: Trying to retrofit XP home with features missing/not included excet in Pro. Using Apache 2.0 with mod_ssl and mod_net as well as the mod_php included with the php 5.12 release. Docs say I must recompile to get ssl support in php while a note on the same page suggests including a dll from the ext/ direcory. I have modified php.ini to include the extension lib but still get the error. Is there a way to enable ssl support in php without recompiling on windows? It is fairly unfeasible for me to use gpp/gcc for windows at this time. I need a simpler solution. Reproduce code: --- print bGenerating new key.../bbr/; $privkey = openssl_pkey_new(); while (($error = openssl_error_string()) !== false) { echo $error . br/\n; $errorCount++; } Expected result: this code should generate a 128 bit private key Actual result: -- Fatal error: Call to undefined function openssl_pkey_new() in C:\inetpub\wwwroot\php-ca\modules\setup\create.php on line 39 -- Edit this bug report at http://bugs.php.net/?id=36932edit=1
#36932 [Bgs]: undefined function openssl_pkey_new()
ID: 36932 Updated by: [EMAIL PROTECTED] Reported By: fred at mycommlog dot com Status: Bogus Bug Type: OpenSSL related Operating System: Win XP Home PHP Version: 5.1.2 New Comment: Just put those DLLs where your SAPI is located. Previous Comments: [2006-03-31 13:26:35] [EMAIL PROTECTED] In order to enable this module on a Windows environment, you must copy libeay32.dll from the DLL folder of the PHP/Win32 binary package to the SYSTEM32 folder of your windows machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32) http://php.net/openssl [2006-03-31 13:13:16] fred at mycommlog dot com Description: Trying to retrofit XP home with features missing/not included excet in Pro. Using Apache 2.0 with mod_ssl and mod_net as well as the mod_php included with the php 5.12 release. Docs say I must recompile to get ssl support in php while a note on the same page suggests including a dll from the ext/ direcory. I have modified php.ini to include the extension lib but still get the error. Is there a way to enable ssl support in php without recompiling on windows? It is fairly unfeasible for me to use gpp/gcc for windows at this time. I need a simpler solution. Reproduce code: --- print bGenerating new key.../bbr/; $privkey = openssl_pkey_new(); while (($error = openssl_error_string()) !== false) { echo $error . br/\n; $errorCount++; } Expected result: this code should generate a 128 bit private key Actual result: -- Fatal error: Call to undefined function openssl_pkey_new() in C:\inetpub\wwwroot\php-ca\modules\setup\create.php on line 39 -- Edit this bug report at http://bugs.php.net/?id=36932edit=1
#36880 [Bgs-Opn]: OciLogon crashes apache
ID: 36880 User updated by: jbond007 at atsat dot com Reported By: jbond007 at atsat dot com -Status: Bogus +Status: Open Bug Type: OCI8 related Operating System: Linux RH4 PHP Version: 5.1.2 New Comment: When it occurs when it happens without I click on anything on my php page, it's only when php is compiled with debug activated. Previous Comments: [2006-03-29 15:05:57] [EMAIL PROTECTED] It even happened without I click on anything on my php page. Apparently this means that it's not PHP problem. [2006-03-29 14:58:21] jbond007 at atsat dot com I think I needn't test it with Instant client, as the segmentation fault could happen randomly and without using Oracle. It even happened without I click on anything on my php page. [2006-03-29 12:04:54] [EMAIL PROTECTED] I've tested it on RHEL as well and I'm sure this issue is not reproducible, You can also try Instant Client, which doesn't require any environment vairables, but in any case I'm afraid you're on your own with your problem. [2006-03-29 11:56:40] jbond007 at atsat dot com I said OS=Linux RH4, but in fact it's Linux RHEL4. Are there any version of php made for this version of Linux? Kernels on this version are not standard as they could work with more than 4GO memory. [2006-03-28 16:44:40] jbond007 at atsat dot com with apache2 I use --with_mpm=prefork This problem occurs only with apache 2, or apache 1.XX. In php cli it works fine. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/36880 -- Edit this bug report at http://bugs.php.net/?id=36880edit=1
#36880 [Opn-Fbk]: OciLogon crashes apache
ID: 36880 Updated by: [EMAIL PROTECTED] Reported By: jbond007 at atsat dot com -Status: Open +Status: Feedback Bug Type: OCI8 related Operating System: Linux RH4 PHP Version: 5.1.2 New Comment: Still can't reproduce it. Please check that you're able to run and use other Oracle applications. Previous Comments: [2006-03-31 15:35:11] jbond007 at atsat dot com When it occurs when it happens without I click on anything on my php page, it's only when php is compiled with debug activated. [2006-03-29 15:05:57] [EMAIL PROTECTED] It even happened without I click on anything on my php page. Apparently this means that it's not PHP problem. [2006-03-29 14:58:21] jbond007 at atsat dot com I think I needn't test it with Instant client, as the segmentation fault could happen randomly and without using Oracle. It even happened without I click on anything on my php page. [2006-03-29 12:04:54] [EMAIL PROTECTED] I've tested it on RHEL as well and I'm sure this issue is not reproducible, You can also try Instant Client, which doesn't require any environment vairables, but in any case I'm afraid you're on your own with your problem. [2006-03-29 11:56:40] jbond007 at atsat dot com I said OS=Linux RH4, but in fact it's Linux RHEL4. Are there any version of php made for this version of Linux? Kernels on this version are not standard as they could work with more than 4GO memory. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/36880 -- Edit this bug report at http://bugs.php.net/?id=36880edit=1
#36880 [Fbk-Opn]: OciLogon crashes apache
ID: 36880 User updated by: jbond007 at atsat dot com Reported By: jbond007 at atsat dot com -Status: Feedback +Status: Open Bug Type: OCI8 related Operating System: Linux RH4 PHP Version: 5.1.2 New Comment: I could install oracle 10.2g normally, even could apply the patch 10.2.0.2 with no problem. I configured the whole database. Even Import production data from my old server. Could use configuration tools to connect and configure the database. Could run a little php script in CLI mode which could connect to Oracle. Fails only when we have Apache+Php, Apache Any version (1.XX or 2.XX) and Php Any version (4 or 5). Previous Comments: [2006-03-31 15:56:04] [EMAIL PROTECTED] Still can't reproduce it. Please check that you're able to run and use other Oracle applications. [2006-03-31 15:35:11] jbond007 at atsat dot com When it occurs when it happens without I click on anything on my php page, it's only when php is compiled with debug activated. [2006-03-29 15:05:57] [EMAIL PROTECTED] It even happened without I click on anything on my php page. Apparently this means that it's not PHP problem. [2006-03-29 14:58:21] jbond007 at atsat dot com I think I needn't test it with Instant client, as the segmentation fault could happen randomly and without using Oracle. It even happened without I click on anything on my php page. [2006-03-29 12:04:54] [EMAIL PROTECTED] I've tested it on RHEL as well and I'm sure this issue is not reproducible, You can also try Instant Client, which doesn't require any environment vairables, but in any case I'm afraid you're on your own with your problem. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/36880 -- Edit this bug report at http://bugs.php.net/?id=36880edit=1
#36933 [NEW]: Fatal error: Function name must be a string in line no 1600 in smarty.class.ph
From: sudha_seeni at yahoo dot co dot in Operating system: windows xp PHP version: 5.1.2 PHP Bug Type: Unknown/Other Function Bug description: Fatal error: Function name must be a string in line no 1600 in smarty.class.ph Description: php 5.1.1,mysql 5.0.18,windows xp,xampp 1.5.1 see i have installed xampp 1.5.1 which itself has mysql,phpmyadmin.. i have installed smarty also. i store my php file in c:\program files\xampp\htdocs.my friend has forwarded a php project which is in a folder leadtrac_project. so this one i have copied and pasted in c:\program files\xampp\htdocs i.e it will be as c:\program files\xampp\htdocs\leadtrac_project. i have to open in browser as http://localhost/leadtrac_project/index.php.for this i am getting a error:- Fatal error: Function name must be a string in line no 1600 in smarty.class.php in leadtrac_project folder there is a include folder which has config.inc file where the part of coding is: elseif($HTTP_HOST == 'localhost') { $configVars['siteBaseUrl'] = 'http://localhost/leadtrac/'; $configVars['siteBasePath']='C:\\Program Files\\Apache Group\\Apache\\htdocs\\leadtrac\\'; $dbConfig['dbhost'] = 'localhost'; $dbConfig['dbname'] = 'leadtrac_db2'; $dbConfig['dbuser'] = 'root'; $dbConfig['dbpass'] = ''; $dbConfig['dbType'] = 'mysql'; $configVars['dncCode'] ='8a8s5t6u9d6n4c8'; //absolute path to smarty require('C:\\Satish\\PHP_DOCS\\smarty\\Smarty-2.6.10\\libs\\Smarty.class.php'); } what i have changed is :- is sitebaseurl,sitebasepath,absolute path to smarty elseif($HTTP_HOST == 'localhost') { $configVars['siteBaseUrl'] = 'http://localhost/leadtrac_project/'; $configVars['siteBasePath']='C:\\Program Files\\xampp\\htdocs\\leadtrac_project\\'; $dbConfig['dbhost'] = 'localhost'; $dbConfig['dbname'] = 'leadtrac_db2'; $dbConfig['dbuser'] = 'root'; $dbConfig['dbpass'] = ''; $dbConfig['dbType'] = 'mysql'; $configVars['dncCode'] ='8a8s5t6u9d6n4c8'; //absolute path to smarty require('C:\Program Files\xampp\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.5.0\libs\Smarty.class.php'); } after changing and running this error comes what to do -- Edit bug report at http://bugs.php.net/?id=36933edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36933r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36933r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36933r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36933r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36933r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36933r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36933r=needscript Try newer version:http://bugs.php.net/fix.php?id=36933r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36933r=support Expected behavior:http://bugs.php.net/fix.php?id=36933r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36933r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36933r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36933r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36933r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36933r=dst IIS Stability:http://bugs.php.net/fix.php?id=36933r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36933r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36933r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36933r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36933r=mysqlcfg
#36933 [Opn-Fbk]: Fatal error: Function name must be a string in line no 1600 in smarty.class.ph
ID: 36933 Updated by: [EMAIL PROTECTED] Reported By: sudha_seeni at yahoo dot co dot in -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: windows xp PHP Version: 5.1.2 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with ?php and ends with ?, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. Previous Comments: [2006-03-31 16:11:26] sudha_seeni at yahoo dot co dot in Description: php 5.1.1,mysql 5.0.18,windows xp,xampp 1.5.1 see i have installed xampp 1.5.1 which itself has mysql,phpmyadmin.. i have installed smarty also. i store my php file in c:\program files\xampp\htdocs.my friend has forwarded a php project which is in a folder leadtrac_project. so this one i have copied and pasted in c:\program files\xampp\htdocs i.e it will be as c:\program files\xampp\htdocs\leadtrac_project. i have to open in browser as http://localhost/leadtrac_project/index.php.for this i am getting a error:- Fatal error: Function name must be a string in line no 1600 in smarty.class.php in leadtrac_project folder there is a include folder which has config.inc file where the part of coding is: elseif($HTTP_HOST == 'localhost') { $configVars['siteBaseUrl'] = 'http://localhost/leadtrac/'; $configVars['siteBasePath']='C:\\Program Files\\Apache Group\\Apache\\htdocs\\leadtrac\\'; $dbConfig['dbhost'] = 'localhost'; $dbConfig['dbname'] = 'leadtrac_db2'; $dbConfig['dbuser'] = 'root'; $dbConfig['dbpass'] = ''; $dbConfig['dbType'] = 'mysql'; $configVars['dncCode'] ='8a8s5t6u9d6n4c8'; //absolute path to smarty require('C:\\Satish\\PHP_DOCS\\smarty\\Smarty-2.6.10\\libs\\Smarty.class.php'); } what i have changed is :- is sitebaseurl,sitebasepath,absolute path to smarty elseif($HTTP_HOST == 'localhost') { $configVars['siteBaseUrl'] = 'http://localhost/leadtrac_project/'; $configVars['siteBasePath']='C:\\Program Files\\xampp\\htdocs\\leadtrac_project\\'; $dbConfig['dbhost'] = 'localhost'; $dbConfig['dbname'] = 'leadtrac_db2'; $dbConfig['dbuser'] = 'root'; $dbConfig['dbpass'] = ''; $dbConfig['dbType'] = 'mysql'; $configVars['dncCode'] ='8a8s5t6u9d6n4c8'; //absolute path to smarty require('C:\Program Files\xampp\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.5.0\libs\Smarty.class.php'); } after changing and running this error comes what to do -- Edit this bug report at http://bugs.php.net/?id=36933edit=1
#36933 [Fbk-Bgs]: Fatal error: Function name must be a string in line no 1600 in smarty.class.ph
ID: 36933 Updated by: [EMAIL PROTECTED] Reported By: sudha_seeni at yahoo dot co dot in -Status: Feedback +Status: Bogus Bug Type: Unknown/Other Function Operating System: windows xp PHP Version: 5.1.2 New Comment: Issues of applications written in PHP are apparently not PHP bugs. Previous Comments: [2006-03-31 16:42:41] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with ?php and ends with ?, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. [2006-03-31 16:11:26] sudha_seeni at yahoo dot co dot in Description: php 5.1.1,mysql 5.0.18,windows xp,xampp 1.5.1 see i have installed xampp 1.5.1 which itself has mysql,phpmyadmin.. i have installed smarty also. i store my php file in c:\program files\xampp\htdocs.my friend has forwarded a php project which is in a folder leadtrac_project. so this one i have copied and pasted in c:\program files\xampp\htdocs i.e it will be as c:\program files\xampp\htdocs\leadtrac_project. i have to open in browser as http://localhost/leadtrac_project/index.php.for this i am getting a error:- Fatal error: Function name must be a string in line no 1600 in smarty.class.php in leadtrac_project folder there is a include folder which has config.inc file where the part of coding is: elseif($HTTP_HOST == 'localhost') { $configVars['siteBaseUrl'] = 'http://localhost/leadtrac/'; $configVars['siteBasePath']='C:\\Program Files\\Apache Group\\Apache\\htdocs\\leadtrac\\'; $dbConfig['dbhost'] = 'localhost'; $dbConfig['dbname'] = 'leadtrac_db2'; $dbConfig['dbuser'] = 'root'; $dbConfig['dbpass'] = ''; $dbConfig['dbType'] = 'mysql'; $configVars['dncCode'] ='8a8s5t6u9d6n4c8'; //absolute path to smarty require('C:\\Satish\\PHP_DOCS\\smarty\\Smarty-2.6.10\\libs\\Smarty.class.php'); } what i have changed is :- is sitebaseurl,sitebasepath,absolute path to smarty elseif($HTTP_HOST == 'localhost') { $configVars['siteBaseUrl'] = 'http://localhost/leadtrac_project/'; $configVars['siteBasePath']='C:\\Program Files\\xampp\\htdocs\\leadtrac_project\\'; $dbConfig['dbhost'] = 'localhost'; $dbConfig['dbname'] = 'leadtrac_db2'; $dbConfig['dbuser'] = 'root'; $dbConfig['dbpass'] = ''; $dbConfig['dbType'] = 'mysql'; $configVars['dncCode'] ='8a8s5t6u9d6n4c8'; //absolute path to smarty require('C:\Program Files\xampp\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.5.0\libs\Smarty.class.php'); } after changing and running this error comes what to do -- Edit this bug report at http://bugs.php.net/?id=36933edit=1
#36934 [NEW]: OCILob-read() doesn't move internal pointer when reading 0's
From: sswpwp at poczta dot onet dot pl Operating system: Windows 2000 PHP version: 5CVS-2006-03-31 (snap) PHP Bug Type: OCI8 related Bug description: OCILob-read() doesn't move internal pointer when reading 0's Description: When using OCILob-read(length) function with BLOBs containing 0's it reads specified amount of bytes but doesn't move internal pointer properly. The pointer is moved to the next '0' byte and no further. I think the possible cause of this bug is line 223 in oci8_lob.c file: data_len_chars = OCIMultiByteStrnDisplayLength(connection-env, *data, bytes_total); Propably the function quits after reaching '\0' character instead of checking bytes_total bytes and as such should be used only with CLOBs. Reproduce code: --- First 128 bytes in the BLOB I'm reading are 0's, then there are 5 non-zero bytes followed by some more 0's. $stmt = oci_parse($auth-conn, SELECT ZDJT_IMAGE FROM IMAGES WHERE IMAGE_ID = 1); oci_execute($stmt); $row = oci_fetch_assoc($stmt); $row['ZDJT_IMAGE']-read(128); echo $row['ZDJT_IMAGE']-tell(); $row['ZDJT_IMAGE']-read(128); echo $row['ZDJT_IMAGE']-tell(); $row['ZDJT_IMAGE']-seek(128); echo $row['ZDJT_IMAGE']-tell(); $row['ZDJT_IMAGE']-read(128); echo $row['ZDJT_IMAGE']-tell(); Expected result: The expected result would be: 128 256 128 256 Actual result: -- 0 0 128 133 -- Edit bug report at http://bugs.php.net/?id=36934edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36934r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36934r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36934r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36934r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36934r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36934r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36934r=needscript Try newer version:http://bugs.php.net/fix.php?id=36934r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36934r=support Expected behavior:http://bugs.php.net/fix.php?id=36934r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36934r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36934r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36934r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36934r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36934r=dst IIS Stability:http://bugs.php.net/fix.php?id=36934r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36934r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36934r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36934r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36934r=mysqlcfg
#36935 [NEW]: dcngettext() function not defined/ '_' function defined
From: flconseil at yahoo dot fr Operating system: Windows XP PHP version: 5.1.2 PHP Bug Type: Gettext related Bug description: dcngettext() function not defined/ '_' function defined Description: After loading php_gettext.dll, the dcngettext() function is not defined. I don't know if it is related but gettext defines a '_' (underscore) function, which seems to accept only one argument, but I don't know what this function does. I don't know if it is specific to Windows as I haven't tried it on another system. Reproduce code: --- dl('php_gettext.dll'); $ext=new ReflectionExtension('gettext'); foreach ($ext-getFunctions() as $func) echo $func-getName().\n; You can also try '_('foo');' which doesn't seem to do anything. Expected result: textdomain gettext dcngettext dgettext dcgettext bindtextdomain ngettext dngettext bind_textdomain_codeset Actual result: -- textdomain gettext _ dgettext dcgettext bindtextdomain ngettext dngettext bind_textdomain_codeset -- Edit bug report at http://bugs.php.net/?id=36935edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36935r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36935r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36935r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36935r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36935r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36935r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36935r=needscript Try newer version:http://bugs.php.net/fix.php?id=36935r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36935r=support Expected behavior:http://bugs.php.net/fix.php?id=36935r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36935r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36935r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36935r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36935r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36935r=dst IIS Stability:http://bugs.php.net/fix.php?id=36935r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36935r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36935r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36935r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36935r=mysqlcfg
#36934 [Opn-Asn]: OCILob-read() doesn't move internal pointer when reading 0's
ID: 36934 Updated by: [EMAIL PROTECTED] Reported By: sswpwp at poczta dot onet dot pl -Status: Open +Status: Assigned Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 5CVS-2006-03-31 (snap) -Assigned To: +Assigned To: tony2001 Previous Comments: [2006-03-31 16:51:13] sswpwp at poczta dot onet dot pl Description: When using OCILob-read(length) function with BLOBs containing 0's it reads specified amount of bytes but doesn't move internal pointer properly. The pointer is moved to the next '0' byte and no further. I think the possible cause of this bug is line 223 in oci8_lob.c file: data_len_chars = OCIMultiByteStrnDisplayLength(connection-env, *data, bytes_total); Propably the function quits after reaching '\0' character instead of checking bytes_total bytes and as such should be used only with CLOBs. Reproduce code: --- First 128 bytes in the BLOB I'm reading are 0's, then there are 5 non-zero bytes followed by some more 0's. $stmt = oci_parse($auth-conn, SELECT ZDJT_IMAGE FROM IMAGES WHERE IMAGE_ID = 1); oci_execute($stmt); $row = oci_fetch_assoc($stmt); $row['ZDJT_IMAGE']-read(128); echo $row['ZDJT_IMAGE']-tell(); $row['ZDJT_IMAGE']-read(128); echo $row['ZDJT_IMAGE']-tell(); $row['ZDJT_IMAGE']-seek(128); echo $row['ZDJT_IMAGE']-tell(); $row['ZDJT_IMAGE']-read(128); echo $row['ZDJT_IMAGE']-tell(); Expected result: The expected result would be: 128 256 128 256 Actual result: -- 0 0 128 133 -- Edit this bug report at http://bugs.php.net/?id=36934edit=1
#36934 [Asn]: OCILob-read() doesn't move internal pointer when reading 0's
ID: 36934 User updated by: sswpwp at poczta dot onet dot pl Reported By: sswpwp at poczta dot onet dot pl Status: Assigned Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 5CVS-2006-03-31 (snap) Assigned To: tony2001 New Comment: I'm using Apache 2.0.55 and Oracle Instant Client 10.2.0 Previous Comments: [2006-03-31 16:51:13] sswpwp at poczta dot onet dot pl Description: When using OCILob-read(length) function with BLOBs containing 0's it reads specified amount of bytes but doesn't move internal pointer properly. The pointer is moved to the next '0' byte and no further. I think the possible cause of this bug is line 223 in oci8_lob.c file: data_len_chars = OCIMultiByteStrnDisplayLength(connection-env, *data, bytes_total); Propably the function quits after reaching '\0' character instead of checking bytes_total bytes and as such should be used only with CLOBs. Reproduce code: --- First 128 bytes in the BLOB I'm reading are 0's, then there are 5 non-zero bytes followed by some more 0's. $stmt = oci_parse($auth-conn, SELECT ZDJT_IMAGE FROM IMAGES WHERE IMAGE_ID = 1); oci_execute($stmt); $row = oci_fetch_assoc($stmt); $row['ZDJT_IMAGE']-read(128); echo $row['ZDJT_IMAGE']-tell(); $row['ZDJT_IMAGE']-read(128); echo $row['ZDJT_IMAGE']-tell(); $row['ZDJT_IMAGE']-seek(128); echo $row['ZDJT_IMAGE']-tell(); $row['ZDJT_IMAGE']-read(128); echo $row['ZDJT_IMAGE']-tell(); Expected result: The expected result would be: 128 256 128 256 Actual result: -- 0 0 128 133 -- Edit this bug report at http://bugs.php.net/?id=36934edit=1
#36936 [NEW]: Issue with PHP Pear command
From: bnatal at tsp dot sheridan dot com Operating system: Solaris 9 PHP version: 4.4.2 PHP Bug Type: *General Issues Bug description: Issue with PHP Pear command Description: I've compiled PHP 4.4.2 --with-pear everything compiled fine. However, when I try to use the pear command such as (pear install package name) I get the below error message. Any idea how to best resolve this issue? Warning: main(Console/Getopt.php): failed to open stream: No such file or directory in System.php on line 27 Fatal error: main(): Failed opening required 'Console/Getopt.php' (include_path='/usr/local/apache2/php/lib/php') in /usr/local/apache2/php/lib/php/System.php on line 27 -- Edit bug report at http://bugs.php.net/?id=36936edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36936r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36936r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36936r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36936r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36936r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36936r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36936r=needscript Try newer version:http://bugs.php.net/fix.php?id=36936r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36936r=support Expected behavior:http://bugs.php.net/fix.php?id=36936r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36936r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36936r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36936r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36936r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36936r=dst IIS Stability:http://bugs.php.net/fix.php?id=36936r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36936r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36936r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36936r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36936r=mysqlcfg
#36936 [Opn-Bgs]: Issue with PHP Pear command
ID: 36936 Updated by: [EMAIL PROTECTED] Reported By: bnatal at tsp dot sheridan dot com -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: Solaris 9 PHP Version: 4.4.2 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Please open a bug report at http://pear.php.net/bugs/report.php?package=PEAR Thank you. Previous Comments: [2006-03-31 18:15:12] bnatal at tsp dot sheridan dot com Description: I've compiled PHP 4.4.2 --with-pear everything compiled fine. However, when I try to use the pear command such as (pear install package name) I get the below error message. Any idea how to best resolve this issue? Warning: main(Console/Getopt.php): failed to open stream: No such file or directory in System.php on line 27 Fatal error: main(): Failed opening required 'Console/Getopt.php' (include_path='/usr/local/apache2/php/lib/php') in /usr/local/apache2/php/lib/php/System.php on line 27 -- Edit this bug report at http://bugs.php.net/?id=36936edit=1
#36937 [NEW]: key length too long distroys the hash
From: dragos at codersnest dot com Operating system: Suse 9.3 + Windoze XP PHP version: 4.4.2 PHP Bug Type: mhash related Bug description: key length too long distroys the hash Description: I tried to do a gateway script which required me to send a hash(SHA1) of some given data, with a given key. In the beginning it worked, then after we switched to production, the key changed length from 32 to 194 (hex chars). The key was calculated as pack() binary value from the original key. At this point, the value returned by mhash() got wrong. So, basically, I am assuming that there is somewhere a constraint on the key length, either on pack() there might be a problem, though i've used that one before. Reproduce code: --- example 1 (working): $data = 'some string data'; $mkey = '00112233445566778899AABBCCDDEEFF'; $mac = bin2hex(mhash(MHASH_SHA1,$mac,pack('h*',$mkey))); This was working! example 2: $mkey='496E7465726E6574206765626F72656E2C20656E747769636B656C7420756E6420756D67657365747A742E20656E7465727061796D656E74206661737374206469652067846E6769677374656E205A61686C617274656E20696E2065696E656D20'; This was not workign anymore! Expected result: a correct hash value which to be checked at the gateway again by calculating the same hash from fields of a form.. Actual result: -- bad hash value -- Edit bug report at http://bugs.php.net/?id=36937edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36937r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36937r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36937r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36937r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36937r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36937r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36937r=needscript Try newer version:http://bugs.php.net/fix.php?id=36937r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36937r=support Expected behavior:http://bugs.php.net/fix.php?id=36937r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36937r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36937r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36937r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36937r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36937r=dst IIS Stability:http://bugs.php.net/fix.php?id=36937r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36937r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36937r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36937r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36937r=mysqlcfg
#36937 [Opn]: key length too long distroys the hash
ID: 36937 User updated by: dragos at codersnest dot com Reported By: dragos at codersnest dot com Status: Open Bug Type: mhash related Operating System: Suse 9.3 + Windoze XP PHP Version: 4.4.2 New Comment: same thing hapenned on windowsXP+php 5.1.2 and on Fedora3+php 4.3.11, even with iconCube and ZendOptimizer disabled Previous Comments: [2006-03-31 20:35:07] dragos at codersnest dot com Description: I tried to do a gateway script which required me to send a hash(SHA1) of some given data, with a given key. In the beginning it worked, then after we switched to production, the key changed length from 32 to 194 (hex chars). The key was calculated as pack() binary value from the original key. At this point, the value returned by mhash() got wrong. So, basically, I am assuming that there is somewhere a constraint on the key length, either on pack() there might be a problem, though i've used that one before. Reproduce code: --- example 1 (working): $data = 'some string data'; $mkey = '00112233445566778899AABBCCDDEEFF'; $mac = bin2hex(mhash(MHASH_SHA1,$mac,pack('h*',$mkey))); This was working! example 2: $mkey='496E7465726E6574206765626F72656E2C20656E747769636B656C7420756E6420756D67657365747A742E20656E7465727061796D656E74206661737374206469652067846E6769677374656E205A61686C617274656E20696E2065696E656D20'; This was not workign anymore! Expected result: a correct hash value which to be checked at the gateway again by calculating the same hash from fields of a form.. Actual result: -- bad hash value -- Edit this bug report at http://bugs.php.net/?id=36937edit=1
#36938 [NEW]: Type casting on boolean expressions doesn't work
From: daniele_dll at yahoo dot it Operating system: Windows XP SP2 - Fedora Core 4 PHP version: 5.1.2 PHP Bug Type: Scripting Engine problem Bug description: Type casting on boolean expressions doesn't work Description: Type casting a value on an if doesn't work! If i compare a string value with the same value type casted to an int and this string doesn't contains a numeric value i recive a true from the boolean expression! I've tried many combinations but all return the same result Thanks for the help Reproduce code: --- ?php $valore = 'qwerty'; if ($valore == (int)$valore) { echo variable contains a valid numeric value!; } else { echo variable doesn't contains a valid numeric value!; } ? Expected result: $valore == (int)$valore -- FALSE variable doesn't contains a valid numeric value! Actual result: -- $valore == (int)$valore -- TRUE variable contains a valid numeric value! -- Edit bug report at http://bugs.php.net/?id=36938edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36938r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36938r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36938r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36938r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36938r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36938r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36938r=needscript Try newer version:http://bugs.php.net/fix.php?id=36938r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36938r=support Expected behavior:http://bugs.php.net/fix.php?id=36938r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36938r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36938r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36938r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36938r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36938r=dst IIS Stability:http://bugs.php.net/fix.php?id=36938r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36938r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36938r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36938r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36938r=mysqlcfg
#36938 [Opn-Bgs]: Type casting on boolean expressions doesn't work
ID: 36938 Updated by: [EMAIL PROTECTED] Reported By: daniele_dll at yahoo dot it -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows XP SP2 - Fedora Core 4 PHP Version: 5.1.2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: [2006-03-31 23:17:23] daniele_dll at yahoo dot it Description: Type casting a value on an if doesn't work! If i compare a string value with the same value type casted to an int and this string doesn't contains a numeric value i recive a true from the boolean expression! I've tried many combinations but all return the same result Thanks for the help Reproduce code: --- ?php $valore = 'qwerty'; if ($valore == (int)$valore) { echo variable contains a valid numeric value!; } else { echo variable doesn't contains a valid numeric value!; } ? Expected result: $valore == (int)$valore -- FALSE variable doesn't contains a valid numeric value! Actual result: -- $valore == (int)$valore -- TRUE variable contains a valid numeric value! -- Edit this bug report at http://bugs.php.net/?id=36938edit=1
#36853 [Com]: Worker process crashes after application pool recycle
ID: 36853 Comment by: funkyonex at hotmail dot com Reported By: kleef84 at hotmail dot com Status: Feedback Bug Type: IIS related Operating System: Windows Server 2003 SP1 PHP Version: 5CVS-2006-03-24 (CVS) New Comment: Try changing the identity of the application pool from NETWORK SERVEICE to IWAM_[SERVERNAME]. From the IIS console, right-click on the AppPool -- Properties -- Identity tab. Previous Comments: [2006-03-26 12:34:40] [EMAIL PROTECTED] I mean grab the binaries, not the sources and try them please. [2006-03-26 04:02:52] kleef84 at hotmail dot com I've tried with php5.1-200603252330.tar.gz, but unfortunately no positive effect. Debug Diagnostic Tool also gives the same result. I'm using Microsoft Visual C++ 6.0 to build PHP. The configure command I used is: cscript /nologo configure.js --enable-isapi --enable-cli-win32 --with-config-file-scan-dir=c:\php5 --with-mysqli --with-mysql --enable-pdo --with-pdo-mysql Any more actions I can take to provide you with more information on this? And what do you mean with 'official' in: Please try _official_ snapshots. [2006-03-26 00:57:14] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip Please try _official_ snapshots. [2006-03-25 00:23:54] kleef84 at hotmail dot com Description: On a Windows Server 2003 machine running IIS6.0 + PHP 5.1.3-dev running as isapi. Everytime the application pool recycles or is shutting down, the w3wp.exe process that is shutting down crashes. The w3wp.exe process that is being started, will start without any problems. I attached Debug Diagnostic Tool (v1.0) from Microsoft to the faulting application pool, which gives the following result: w3wp__PID__3188__Date__03_24_2006__Time_10_48_32PM__421__Second_Chance_Exception_C005.dmp Type of Analysis Performed Crash Analysis Machine Name XXX Operating System Windows Server 2003 Service Pack 1 Number Of Processors 1 Process ID 3188 Process Image c:\WINDOWS\system32\inetsrv\w3wp.exe System Up-Time 2 day(s) 00:21:07 Process Up-Time 0 day(s) 00:00:40 Thread 19 - System ID 2360 Entry point msvcrt!_endthread+3b Create time 3/24/2006 10:48:32 PM Time spent in user mode 0 Days 0:0:0.0 Time spent in kernel mode 0 Days 0:0:0.0 Function Arg 1 Arg 2 Arg 3 Source Unloaded_php5ts.dll+2bc3f0 015eda00 msvcrt!_endthread+ab 02093838 kernel32!BaseThreadStart+34 77bcb35a 02093838 In w3wp__PID__3188__Date__03_24_2006__Time_10_48_32PM__421__Second_Chance_Exception_C005.dmp an access violation exception (0xC005) occured on thread 19 when another module attempted to call the following unloaded module: php5ts.dll. Im using the latest source files at snaps.php.net, configure command: cscript /nologo configure.js --enable-isapi -- Edit this bug report at http://bugs.php.net/?id=36853edit=1
#36795 [Com]: Inappropriate unterminated entity reference in DOMElement-setAttribute
ID: 36795 Comment by: tamit at xmission dot com Reported By: john at carney dot id dot au Status: No Feedback Bug Type: DOM XML related Operating System: Windows/Linux PHP Version: 5.1.2 New Comment: This is most definitely a bug. I've replicated by producing the following tree in my code: (This is well-formed XML so I have no idea why there would be a problem.) -BEGIN XML ?xml version=1.0 encoding=iso-8859-1? classes class classid=0 parentid= class_level=0Rootclass classid=1 parentid=0 class_level=1Adhesives /class class classid=3286 parentid=0 class_level=1Agricultural and Farming Products/class class classid=3283 parentid=0 class_level=1Architectural and Civil Engineering Products/class class classid=14 parentid=0 class_level=1Automatic ID/class class classid=45 parentid=0 class_level=1Chemical Processing /class class classid=124 parentid=0 class_level=1Cleaning Products /class class classid=148 parentid=0 class_level=1Communication Systems /class class classid=264 parentid=0 class_level=1Computer Hardware /class class classid=3281 parentid=0 class_level=1Construction Equipment and Supplies/class class classid=489 parentid=0 class_level=1Controls /class class classid=589 parentid=0 class_level=1Display /class class classid=612 parentid=0 class_level=1Electrical Equipment /class class classid=772 parentid=0 class_level=1Electronic Components /class class classid=3282 parentid=0 class_level=1Explosives, Armaments, and Weaponry/class class classid=920 parentid=0 class_level=1Fasteners /class class classid=954 parentid=0 class_level=1Fluid /class class classid=3461 parentid=0 class_level=1Food Processing /class class classid=3288 parentid=0 class_level=1Health, Medical, /class class classid=1029 parentid=0 class_level=1HVAC/class class classid=1068 parentid=0 class_level=1Labels Tags Signage /class class classid=3279 parentid=0 class_level=1Laboratory and Research Supplies and Equipment/class class classid=1083 parentid=0 class_level=1Lubricants/class class classid=1106 parentid=0 class_level=1Machinery /class class classid=1424 parentid=0 class_level=1Material Handling /class class classid=1303 parentid=0 class_level=1Materials /class class classid=3284 parentid=0 class_level=1Mechanical Components and Assemblies/class class classid=1620 parentid=0 class_level=1Mechanical Power Transmission/class class classid=3462 parentid=0 class_level=1Mining, Oil Drilling /class class classid=1728 parentid=0 class_level=1Mounting /class class classid=3285 parentid=0 class_level=1Non-Industrial Products/class class classid=1782 parentid=0 class_level=1Optics /class class classid=2054 parentid=0 class_level=1Packaging Equipment /class class classid=2151 parentid=0 class_level=1Paints /class class classid=2185 parentid=0 class_level=1Plant Furnishings /class class classid=2196 parentid=0 class_level=1Portable Tools/class class classid=2286 parentid=0 class_level=1Printing /class class classid=3539 parentid=0 class_level=1Problematic Headings/class class classid=3463 parentid=0 class_level=1Retail and Sales Equipment/class class classid=2328 parentid=0 class_level=1Robotics/class class classid=2369 parentid=0 class_level=1Safety /class class classid=2399 parentid=0 class_level=1Sensors Monitors /class class classid=3280 parentid=0 class_level=1Services/class class classid=2585 parentid=0 class_level=1Software/class class classid=2697 parentid=0 class_level=1Test /class class classid=3919 parentid=0 class_level=1Textile Industry Products/class class classid=3167 parentid=0 class_level=1Thermal /class class classid=3190 parentid=0 class_level=1Timers /class class classid=3287 parentid=0 class_level=1Transportation Industry Products/class class classid=3193 parentid=0 class_level=1Vision Systems/class class classid=3208 parentid=0 class_level=1Waste Handling Equipment/class class classid=3246 parentid=0 class_level=1Welding Equipment /class /class /classes --END XML--- Previous Comments:
#36939 [NEW]: unexpected T_ELSE, T_CASE
From: jmichae3 at yahoo dot com Operating system: Windows XP Pro MP PHP version: 5.1.2 PHP Bug Type: Scripting Engine problem Bug description: unexpected T_ELSE, T_CASE Description: PHP gives unexpected T_ELSE and unexpected T_CASE errors on valid code. checked the code over with brace checker and dreamweaver 8 and older versions of PHP for correctness. maybe it has something to do with the structure of my if/else/switch statements and my weaving in and out of the PHP interpreter. The rest of my 40+ files are fine. just these 2 give me errors in the same place consistently. Reproduce code: --- http://mmediap3.home.comcast.net/z/phpprob.zip includes include files header.php and dbinc.php you may need to execute a short script with header.php in it and a line to set $_SESSION['tid']=1; for tareports.php to output XHTML. execute script from command-line. (executing this script just caused PHP to hang and not die this time (?!?)) Expected result: error messaged about $_SERVER[REMOTE_ADDR] not being defined. and maybe some messages about some session variables not being defined, ad a lot of XHTML. if $_SESSION[tid] is not defined, no XHTML. and if the tables aren't defined on your box (MySQL sql script included), probably mysql errors. Actual result: -- older versions of PHP output XHTML (or hang). C:\prjphp tareports.php PHP Parse error: parse error, unexpected T_ELSE in tareports.php on line 211 causes PHP crash with stack trace outlined below. When I comment this else block out, it complains about the next else. when I comment *that* out, it complains about the case statement that comes next. sounds to me like the parser's in an odd state, or some pointer or piece of memory got mangled. C:\prjphp userreports.php PHP Parse error: syntax error, unexpected T_CASE in userreports.php on line 285 which causes an Access Violation. Actually, all errors cause an Access Violation in this debug version. Stack trace: 014d1c80() tsrm_shutdown() line 180 + 4 bytes main(int, char * *) line 1258 -- Edit bug report at http://bugs.php.net/?id=36939edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36939r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36939r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36939r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36939r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36939r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36939r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36939r=needscript Try newer version:http://bugs.php.net/fix.php?id=36939r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36939r=support Expected behavior:http://bugs.php.net/fix.php?id=36939r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36939r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36939r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36939r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36939r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36939r=dst IIS Stability:http://bugs.php.net/fix.php?id=36939r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36939r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36939r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36939r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36939r=mysqlcfg
#36938 [Bgs]: Type casting on boolean expressions doesn't work
ID: 36938 User updated by: daniele_dll at yahoo dot it Reported By: daniele_dll at yahoo dot it Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows XP SP2 - Fedora Core 4 PHP Version: 5.1.2 New Comment: I'll try to explain me ... $value = 'qwerty'; $value - qwerty (int)$value - 0 so ... how can be that 0 is equal to qwerty? Try this code too ?php $valore = 'qwerty'; $_v = intval($valore); echo ($valore) ? 'true ' : 'false '; echo ($_v) ? 'true ' : 'false '; if ($valore == $_v) { echo variable ({$valore}) contains a valid numeric value ({$_v}) !; } else { echo variable doesn't contains a valid numeric value!; } ? The result is wrong! Previous Comments: [2006-03-31 23:25:52] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php [2006-03-31 23:17:23] daniele_dll at yahoo dot it Description: Type casting a value on an if doesn't work! If i compare a string value with the same value type casted to an int and this string doesn't contains a numeric value i recive a true from the boolean expression! I've tried many combinations but all return the same result Thanks for the help Reproduce code: --- ?php $valore = 'qwerty'; if ($valore == (int)$valore) { echo variable contains a valid numeric value!; } else { echo variable doesn't contains a valid numeric value!; } ? Expected result: $valore == (int)$valore -- FALSE variable doesn't contains a valid numeric value! Actual result: -- $valore == (int)$valore -- TRUE variable contains a valid numeric value! -- Edit this bug report at http://bugs.php.net/?id=36938edit=1
#36938 [Bgs-Opn]: Type casting on boolean expressions doesn't work
ID: 36938 User updated by: daniele_dll at yahoo dot it Reported By: daniele_dll at yahoo dot it -Status: Bogus +Status: Open Bug Type: Scripting Engine problem Operating System: Windows XP SP2 - Fedora Core 4 PHP Version: 5.1.2 New Comment: ops, forgotten to re-open the report sorry Previous Comments: [2006-04-01 09:33:18] daniele_dll at yahoo dot it I'll try to explain me ... $value = 'qwerty'; $value - qwerty (int)$value - 0 so ... how can be that 0 is equal to qwerty? Try this code too ?php $valore = 'qwerty'; $_v = intval($valore); echo ($valore) ? 'true ' : 'false '; echo ($_v) ? 'true ' : 'false '; if ($valore == $_v) { echo variable ({$valore}) contains a valid numeric value ({$_v}) !; } else { echo variable doesn't contains a valid numeric value!; } ? The result is wrong! [2006-03-31 23:25:52] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php [2006-03-31 23:17:23] daniele_dll at yahoo dot it Description: Type casting a value on an if doesn't work! If i compare a string value with the same value type casted to an int and this string doesn't contains a numeric value i recive a true from the boolean expression! I've tried many combinations but all return the same result Thanks for the help Reproduce code: --- ?php $valore = 'qwerty'; if ($valore == (int)$valore) { echo variable contains a valid numeric value!; } else { echo variable doesn't contains a valid numeric value!; } ? Expected result: $valore == (int)$valore -- FALSE variable doesn't contains a valid numeric value! Actual result: -- $valore == (int)$valore -- TRUE variable contains a valid numeric value! -- Edit this bug report at http://bugs.php.net/?id=36938edit=1
#36938 [Opn-Bgs]: Type casting on boolean expressions doesn't work
ID: 36938 Updated by: [EMAIL PROTECTED] Reported By: daniele_dll at yahoo dot it -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows XP SP2 - Fedora Core 4 PHP Version: 5.1.2 New Comment: 0 == 0. This is expected. No bug here. Previous Comments: [2006-04-01 09:34:00] daniele_dll at yahoo dot it ops, forgotten to re-open the report sorry [2006-04-01 09:33:18] daniele_dll at yahoo dot it I'll try to explain me ... $value = 'qwerty'; $value - qwerty (int)$value - 0 so ... how can be that 0 is equal to qwerty? Try this code too ?php $valore = 'qwerty'; $_v = intval($valore); echo ($valore) ? 'true ' : 'false '; echo ($_v) ? 'true ' : 'false '; if ($valore == $_v) { echo variable ({$valore}) contains a valid numeric value ({$_v}) !; } else { echo variable doesn't contains a valid numeric value!; } ? The result is wrong! [2006-03-31 23:25:52] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php [2006-03-31 23:17:23] daniele_dll at yahoo dot it Description: Type casting a value on an if doesn't work! If i compare a string value with the same value type casted to an int and this string doesn't contains a numeric value i recive a true from the boolean expression! I've tried many combinations but all return the same result Thanks for the help Reproduce code: --- ?php $valore = 'qwerty'; if ($valore == (int)$valore) { echo variable contains a valid numeric value!; } else { echo variable doesn't contains a valid numeric value!; } ? Expected result: $valore == (int)$valore -- FALSE variable doesn't contains a valid numeric value! Actual result: -- $valore == (int)$valore -- TRUE variable contains a valid numeric value! -- Edit this bug report at http://bugs.php.net/?id=36938edit=1
#36939 [Opn-Fbk]: unexpected T_ELSE, T_CASE
ID: 36939 Updated by: [EMAIL PROTECTED] Reported By: jmichae3 at yahoo dot com -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: Windows XP Pro MP PHP Version: 5.1.2 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with ?php and ends with ?, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. I'm sure to test the syntax we don't need any huge scripts in zip archive. Previous Comments: [2006-04-01 08:10:57] jmichae3 at yahoo dot com Description: PHP gives unexpected T_ELSE and unexpected T_CASE errors on valid code. checked the code over with brace checker and dreamweaver 8 and older versions of PHP for correctness. maybe it has something to do with the structure of my if/else/switch statements and my weaving in and out of the PHP interpreter. The rest of my 40+ files are fine. just these 2 give me errors in the same place consistently. Reproduce code: --- http://mmediap3.home.comcast.net/z/phpprob.zip includes include files header.php and dbinc.php you may need to execute a short script with header.php in it and a line to set $_SESSION['tid']=1; for tareports.php to output XHTML. execute script from command-line. (executing this script just caused PHP to hang and not die this time (?!?)) Expected result: error messaged about $_SERVER[REMOTE_ADDR] not being defined. and maybe some messages about some session variables not being defined, ad a lot of XHTML. if $_SESSION[tid] is not defined, no XHTML. and if the tables aren't defined on your box (MySQL sql script included), probably mysql errors. Actual result: -- older versions of PHP output XHTML (or hang). C:\prjphp tareports.php PHP Parse error: parse error, unexpected T_ELSE in tareports.php on line 211 causes PHP crash with stack trace outlined below. When I comment this else block out, it complains about the next else. when I comment *that* out, it complains about the case statement that comes next. sounds to me like the parser's in an odd state, or some pointer or piece of memory got mangled. C:\prjphp userreports.php PHP Parse error: syntax error, unexpected T_CASE in userreports.php on line 285 which causes an Access Violation. Actually, all errors cause an Access Violation in this debug version. Stack trace: 014d1c80() tsrm_shutdown() line 180 + 4 bytes main(int, char * *) line 1258 -- Edit this bug report at http://bugs.php.net/?id=36939edit=1