[PHP-BUG] Bug #62119 [NEW]: basename broken with non-ASCII-chars
From: Operating system: Linux/Ubuntu PHP version: 5.3.13 Package: *Directory/Filesystem functions Bug Type: Bug Bug description:basename broken with non-ASCII-chars Description: With the default locale setting "C", basename() drops non-ASCII-chars at the beginning of a filename. Test script: --- $path='/test/äaä.txt'; echo $path."\n"; setlocale(LC_ALL,'C'); echo dirname($path).'/'.basename($path)."\n"; setlocale(LC_ALL,'en_US.iso885915'); // bash: locale -a echo dirname($path).'/'.basename($path)."\n"; Expected result: /test/äaä.txt /test/äaä.txt /test/äaä.txt Actual result: -- /test/äaä.txt /test/aä.txt /test/äaä.txt -- Edit bug report at https://bugs.php.net/bug.php?id=62119&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62119&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62119&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62119&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62119&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62119&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62119&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62119&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62119&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62119&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62119&r=support Expected behavior: https://bugs.php.net/fix.php?id=62119&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62119&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62119&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62119&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62119&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=62119&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62119&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62119&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62119&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62119&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62119&r=mysqlcfg
#50175 [NEW]: gmp_init() results 0 on given base and number starting with 0x or 0b
From: thomas dot hebinck at digionline dot de Operating system: Ubuntu PHP version: 5.3.0 PHP Bug Type: GNU MP related Bug description: gmp_init() results 0 on given base and number starting with 0x or 0b Description: When calling gmp_init() with a *string* starting with 0x or 0b and a given base, 0 is returned (except if the base is 16). Tested with PHP 5.2.3, PHP 5.3 and PHP 5.3-200911141130. Reproduce code: --- for($base=2;$base<=36;$base++) { echo ''.$base.': '; for($i=1;$i<$base;$i++) { $c=($i<=9?$i:chr($i-10+ord('a'))); $s='0'.$c.$c; echo gmp_strval(gmp_init($s,$base),$base) . ' '; } } Expected result: 2: 11 3: 11 22 4: 11 22 33 5: 11 22 33 44 6: 11 22 33 44 55 7: 11 22 33 44 55 66 8: 11 22 33 44 55 66 77 9: 11 22 33 44 55 66 77 88 10: 11 22 33 44 55 66 77 88 99 11: 11 22 33 44 55 66 77 88 99 aa 12: 11 22 33 44 55 66 77 88 99 aa bb 13: 11 22 33 44 55 66 77 88 99 aa bb cc 14: 11 22 33 44 55 66 77 88 99 aa bb cc dd 15: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee 16: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff 17: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg 18: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh 19: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii 20: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj 21: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk 22: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll 23: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm 24: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn 25: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo 26: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp 27: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq 28: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr 29: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss 30: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt 31: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu 32: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv 33: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv ww 34: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv ww xx 35: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv ww xx yy 36: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv ww xx yy zz Actual result: -- 2: 11 3: 11 22 4: 11 22 33 5: 11 22 33 44 6: 11 22 33 44 55 7: 11 22 33 44 55 66 8: 11 22 33 44 55 66 77 9: 11 22 33 44 55 66 77 88 10: 11 22 33 44 55 66 77 88 99 11: 11 22 33 44 55 66 77 88 99 aa 12: 11 22 33 44 55 66 77 88 99 aa 0 13: 11 22 33 44 55 66 77 88 99 aa 0 cc 14: 11 22 33 44 55 66 77 88 99 aa 0 cc dd 15: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee 16: 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff 17: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg 18: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh 19: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii 20: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj 21: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk 22: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll 23: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm 24: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn 25: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn oo 26: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn oo pp 27: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq 28: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr 29: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss 30: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt 31: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu 32: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv 33: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv ww 34: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv ww 0 35: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv ww 0 yy 36: 11 22 33 44 55 66 77 88 99 aa 0 cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv ww 0 yy zz -- Edit bug report at http://bugs.php.net/?id=50175&edit=1 -- Try a snapshot (PHP 5.2): http
#42579 [Fbk->Opn]: apache_reset_timeout() does not exist.
ID: 42579 User updated by: thomas dot hebinck at digionline dot de Reported By: thomas dot hebinck at digionline dot de -Status: Feedback +Status: Open Bug Type: Apache related Operating System: Linux PHP Version: 5.2.4 New Comment: The function is defined in: php-5.2.4/sapi/apache/php_apache.c Previous Comments: [2007-09-06 22:25:43] [EMAIL PROTECTED] In what directory is that file you patched? (there are 3 such files in sources, iirc) [2007-09-06 15:08:26] thomas dot hebinck at digionline dot de ... it works with soap (after patching the source) ;-) [2007-09-06 14:15:15] thomas dot hebinck at digionline dot de This will help: diff -urw php_apache.c.original php_apache.c --- php_apache.c.original Sat Feb 24 03:17:28 2007 +++ php_apache.cThu Sep 6 15:58:12 2007 @@ -66,6 +66,7 @@ PHP_FE(apache_response_headers, NULL) PHP_FE(apache_get_version, NULL) PHP_FE(apache_get_modules, NULL) + PHP_FE(apache_reset_timeout, NULL) PHP_FALIAS(getallheaders, apache_request_headers, NULL) {NULL, NULL, NULL} }; ... but I don't know, if the function is really finished. At least doesn't seem to work with soap. [2007-09-06 14:12:36] thomas dot hebinck at digionline dot de Description: The documented function apache_reset_timeout() does not exist. Reproduce code: --- Expected result: nothing visible Actual result: -- PHP Fatal error: Call to undefined function apache_reset_timeout() -- Edit this bug report at http://bugs.php.net/?id=42579&edit=1
#42579 [Opn]: apache_reset_timeout() does not exist.
ID: 42579 User updated by: thomas dot hebinck at digionline dot de Reported By: thomas dot hebinck at digionline dot de Status: Open Bug Type: Apache related Operating System: Linux PHP Version: 5.2.4 New Comment: ... it works with soap (after patching the source) ;-) Previous Comments: [2007-09-06 14:15:15] thomas dot hebinck at digionline dot de This will help: diff -urw php_apache.c.original php_apache.c --- php_apache.c.original Sat Feb 24 03:17:28 2007 +++ php_apache.cThu Sep 6 15:58:12 2007 @@ -66,6 +66,7 @@ PHP_FE(apache_response_headers, NULL) PHP_FE(apache_get_version, NULL) PHP_FE(apache_get_modules, NULL) + PHP_FE(apache_reset_timeout, NULL) PHP_FALIAS(getallheaders, apache_request_headers, NULL) {NULL, NULL, NULL} }; ... but I don't know, if the function is really finished. At least doesn't seem to work with soap. [2007-09-06 14:12:36] thomas dot hebinck at digionline dot de Description: The documented function apache_reset_timeout() does not exist. Reproduce code: --- Expected result: nothing visible Actual result: -- PHP Fatal error: Call to undefined function apache_reset_timeout() -- Edit this bug report at http://bugs.php.net/?id=42579&edit=1
#42579 [Opn]: apache_reset_timeout() does not exist.
ID: 42579 User updated by: thomas dot hebinck at digionline dot de Reported By: thomas dot hebinck at digionline dot de Status: Open Bug Type: Apache related Operating System: Linux PHP Version: 5.2.4 New Comment: This will help: diff -urw php_apache.c.original php_apache.c --- php_apache.c.original Sat Feb 24 03:17:28 2007 +++ php_apache.cThu Sep 6 15:58:12 2007 @@ -66,6 +66,7 @@ PHP_FE(apache_response_headers, NULL) PHP_FE(apache_get_version, NULL) PHP_FE(apache_get_modules, NULL) + PHP_FE(apache_reset_timeout, NULL) PHP_FALIAS(getallheaders, apache_request_headers, NULL) {NULL, NULL, NULL} }; ... but I don't know, if the function is really finished. At least doesn't seem to work with soap. Previous Comments: [2007-09-06 14:12:36] thomas dot hebinck at digionline dot de Description: The documented function apache_reset_timeout() does not exist. Reproduce code: --- Expected result: nothing visible Actual result: -- PHP Fatal error: Call to undefined function apache_reset_timeout() -- Edit this bug report at http://bugs.php.net/?id=42579&edit=1
#42579 [NEW]: apache_reset_timeout() does not exist.
From: thomas dot hebinck at digionline dot de Operating system: Linux PHP version: 5.2.4 PHP Bug Type: Apache related Bug description: apache_reset_timeout() does not exist. Description: The documented function apache_reset_timeout() does not exist. Reproduce code: --- Expected result: nothing visible Actual result: -- PHP Fatal error: Call to undefined function apache_reset_timeout() -- Edit bug report at http://bugs.php.net/?id=42579&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42579&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42579&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42579&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42579&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42579&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42579&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42579&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42579&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42579&r=support Expected behavior:http://bugs.php.net/fix.php?id=42579&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42579&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42579&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42579&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42579&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42579&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42579&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42579&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42579&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42579&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42579&r=mysqlcfg
#29996 [NoF->Csd]: segmention fault since final release of PHP5
ID: 29996 User updated by: thomas dot hebinck at digionline dot de Reported By: thomas dot hebinck at digionline dot de -Status: No Feedback +Status: Closed Bug Type: Reproducible crash Operating System: Linux Debian Woody PHP Version: 5.0.3RC1 Assigned To: andi New Comment: Closed since 5.0.5 Previous Comments: [2004-12-19 01:00:04] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2004-12-11 00:21:31] [EMAIL PROTECTED] One more question. Is this a script which uses dl()? [2004-12-11 00:16:17] [EMAIL PROTECTED] I took a look at this bug report but honestly there's not enough here for me to actually understand where the problem is. More info would be appreciated. Maybe a valgrind trace of ./httpd -X? [2004-12-08 18:23:01] [EMAIL PROTECTED] Andi, this looks like a reasonable patch (caveat emptor: I didn't look very hard), and is cleaner than my suggestion for commenting out the dlunload call that I mentioned a couple of times now. Would be great if we can resolve this soon. [2004-12-07 17:24:45] thomas dot hebinck at digionline dot de Hi, I applied the patch - but it doesn't work for me. Now I get: /usr/src/php-5.0.3RC1/Zend/zend_hash.c(636) : ht=0x40412370 is already destroyed [Tue Dec 7 17:21:10 2004] [notice] child pid 21964 exit signal Segmentation fault (11) But - thanks! :-) Bye, Thomas. 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/29996 -- Edit this bug report at http://bugs.php.net/?id=29996&edit=1
#42509 [NEW]: GMP without gmp_init eats memory
From: thomas dot hebinck at digionline dot de Operating system: Linux PHP version: 5.2.4 PHP Bug Type: *Math Functions Bug description: GMP without gmp_init eats memory Description: Various GMP Functions eat memory, when not called directly with integers or strings instead of gmp resources. Reproduce code: --- $a='1234'; for($i=0;$i<20;$i++) { $c=gmp_add(gmp_init($a),gmp_init($a)); } echo memory_get_usage() . "¶\n"; for($i=0;$i<20;$i++) { $c=gmp_add($a,$a); } echo memory_get_usage() . "¶\n"; Expected result: Both memory_get_usage() should show nearly the same values. Actual result: -- 1732656¶// ~ 2 MB 43809696¶ // ~ 43 MB -- Edit bug report at http://bugs.php.net/?id=42509&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42509&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42509&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42509&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42509&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42509&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42509&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42509&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42509&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42509&r=support Expected behavior:http://bugs.php.net/fix.php?id=42509&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42509&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42509&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42509&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42509&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42509&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42509&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42509&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42509&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42509&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42509&r=mysqlcfg
#41814 [Bgs->Opn]: String comparison changed
ID: 41814 User updated by: thomas dot hebinck at digionline dot de Reported By: thomas dot hebinck at digionline dot de -Status: Bogus +Status: Open Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 5.2.3 New Comment: The problem is, that the behaviour changed from 5.2.0. to 5.2.1. The two integers are not the same - they are just both out of range. It seems that PHP 5.2.0 didn't convert strings with out of range integers to integer while comparing, but PHP 5.2.1 does. Previous Comments: [2007-06-27 08:23:44] [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 You are comparing two numeric strings. http://www.php.net/manual/en/language.operators.comparison.php [2007-06-26 18:46:06] thomas dot hebinck at digionline dot de Description: The behaviour of the comparison of strings containing integers changed from PHP 5.2.0 to 5.2.1. Reproduce code: --- echo (int)('0x10'=='0x11'); Expected result: 0 // this was the result in PHP <= 5.2.0 Actual result: -- 1 -- Edit this bug report at http://bugs.php.net/?id=41814&edit=1
#41814 [NEW]: String comparison changed
From: thomas dot hebinck at digionline dot de Operating system: Linux PHP version: 5.2.3 PHP Bug Type: Scripting Engine problem Bug description: String comparison changed Description: The behaviour of the comparison of strings containing integers changed from PHP 5.2.0 to 5.2.1. Reproduce code: --- echo (int)('0x10'=='0x11'); Expected result: 0 // this was the result in PHP <= 5.2.0 Actual result: -- 1 -- Edit bug report at http://bugs.php.net/?id=41814&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41814&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41814&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41814&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41814&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41814&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41814&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=41814&r=needscript Try newer version:http://bugs.php.net/fix.php?id=41814&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41814&r=support Expected behavior:http://bugs.php.net/fix.php?id=41814&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41814&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41814&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41814&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41814&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41814&r=dst IIS Stability:http://bugs.php.net/fix.php?id=41814&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41814&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41814&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41814&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=41814&r=mysqlcfg
#35036 [NEW]: concatenate a string to each element of an array
From: thomas dot hebinck at digionline dot de Operating system: Linux PHP version: 5.0.5 PHP Bug Type: Feature/Change Request Bug description: concatenate a string to each element of an array Description: I'd like to have a fast function, which concatenates a string to each element of an array. Reproduce code: --- array array_concatenate ( array array, string string [, bool to_end=true]) Something like this as a php function: $arr=array(1,2,3,4,5,6,7,8,9,0); $str=' test'; array_walk($arr,create_function('&$elem','$elem .= "' . $str . '";')); Expected result: array ( 0 => '1 test', 1 => '2 test', 2 => '3 test', 3 => '4 test', 4 => '5 test', 5 => '6 test', 6 => '7 test', 7 => '8 test', 8 => '9 test', 9 => '0 test', ) Actual result: -- ;-) -- Edit bug report at http://bugs.php.net/?id=35036&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35036&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35036&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35036&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=35036&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=35036&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35036&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35036&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35036&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35036&r=support Expected behavior: http://bugs.php.net/fix.php?id=35036&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35036&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35036&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=35036&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35036&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=35036&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35036&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35036&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35036&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35036&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35036&r=mysqlcfg
#29996 [Fbk->Opn]: segmention fault since final release of PHP5
ID: 29996 User updated by: thomas dot hebinck at digionline dot de Reported By: thomas dot hebinck at digionline dot de -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Linux Debian Woody PHP Version: 5.0.3RC1 New Comment: Hi, I applied the patch - but it doesn't work for me. Now I get: /usr/src/php-5.0.3RC1/Zend/zend_hash.c(636) : ht=0x40412370 is already destroyed [Tue Dec 7 17:21:10 2004] [notice] child pid 21964 exit signal Segmentation fault (11) But - thanks! :-) Bye, Thomas. Previous Comments: [2004-12-06 21:01:16] jost2345 at yahoo dot de #13 0x402df6ee in shutdown_executor () at /usr/src/php-5.0.2/Zend/zend_execute_API.c:209 #14 0x402edcb5 in zend_deactivate () at /usr/src/php-5.0.2/Zend/zend.c:818 #15 0x402a664b in php_request_shutdown (dummy=0x0) at We have experienced the same problem. A description and a preliminary fix is here: -> http://cvs.sourceforge.net/viewcvs.py/php-java-bridge/php-java-bridge/php5-crash-in-evaluator-shutdown_workaround.patch?view=markup [2004-12-01 16:03:51] [EMAIL PROTECTED] You didn't provide a reproduce script. I doubt we'll be able to reproduce and fix the bug without it. [2004-12-01 15:54:16] thomas dot hebinck at digionline dot de Hi, still the same problem in 5.0.3RC1 Sincerely, Thomas Hebinck [2004-10-05 01:00:02] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2004-09-27 18:08:21] [EMAIL PROTECTED] It's really impossible to look into this without further information. Either try and cut it down (might take you some time) or at least try and run valgrind (http://valgrind.kde.org/) on the script and see if there's any information which might point us in the right direction. 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/29996 -- Edit this bug report at http://bugs.php.net/?id=29996&edit=1
#29996 [NoF->Opn]: segmention fault since final release of PHP5
ID: 29996 User updated by: thomas dot hebinck at digionline dot de Reported By: thomas dot hebinck at digionline dot de -Status: No Feedback +Status: Open Bug Type: Reproducible crash Operating System: Linux Debian Woody -PHP Version: 5.0.0 +PHP Version: 5.0.3RC1 New Comment: Hi, still the same problem in 5.0.3RC1 Sincerely, Thomas Hebinck Previous Comments: [2004-10-05 01:00:02] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2004-09-27 18:08:21] [EMAIL PROTECTED] It's really impossible to look into this without further information. Either try and cut it down (might take you some time) or at least try and run valgrind (http://valgrind.kde.org/) on the script and see if there's any information which might point us in the right direction. [2004-09-27 13:22:00] thomas dot hebinck at digionline dot de Hi, still the same problem in 5.0.2 Sincerely, Thomas Hebinck -- ww3-dev:/usr/src/php-5.0.2# gdb /usr/local/apache1/bin/httpd gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, consider re-linking GNU gdb 2002-04-01-cvs Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...(no debugging symbols found)... (gdb) run -X Starting program: /usr/local/apache1/bin/httpd -X (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New Thread 1024 (LWP 18002)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 18002)] 0x400d8bb8 in free () from /lib/libc.so.6 (gdb) bt #0 0x400d8bb8 in free () from /lib/libc.so.6 #1 0x400d8aa3 in free () from /lib/libc.so.6 #2 0x402f6315 in zend_hash_del_key_or_index (ht=0x81ffd14, arKey=0x8249e5c "p_parent", nKeyLength=9, h=755180190, flag=0) at /usr/src/php-5.0.2/Zend/zend_hash.c:495 #3 0x40304173 in zend_std_unset_property (object=0xbfffeb70, member=0x815646c) at /usr/src/php-5.0.2/Zend/zend_object_handlers.c:506 #4 0x4031911a in zend_unset_dim_obj_handler (execute_data=0xbfffe810, opline=0x815643c, op_array=0x8144f54) at /usr/src/php-5.0.2/Zend/zend_execute.c:3665 #5 0x40312cc1 in execute (op_array=0x8144f54) at /usr/src/php-5.0.2/Zend/zend_execute.c:1400 #6 0x403169c7 in zend_do_fcall_common_helper (execute_data=0xbfffe910, opline=0x823e3d4, op_array=0x823f66c) at /usr/src/php-5.0.2/Zend/zend_execute.c:2740 #7 0x40316e98 in zend_do_fcall_by_name_handler (execute_data=0xbfffe910, opline=0x823e3d4, op_array=0x823f66c) at /usr/src/php-5.0.2/Zend/zend_execute.c:2825 #8 0x40312cc1 in execute (op_array=0x823f66c) at /usr/src/php-5.0.2/Zend/zend_execute.c:1400 #9 0x402e16dc in zend_call_function (fci=0xbfffeac0, fci_cache=0xbfffea80) at /usr/src/php-5.0.2/Zend/zend_execute_API.c:838 #10 0x40300172 in zend_call_method (object_pp=0xbfffeb6c, obj_ce=0x81df1ec, fn_proxy=0x0, function_name=0x403a6397 "__destruct", function_name_len=10, retval_ptr_ptr=0x0, param_count=0, arg1=0x0, arg2=0x0) at /usr/src/php-5.0.2/Zend/zend_interfaces.c:79 #11 0x40303123 in zend_objects_destroy_object (object=0x81dd0cc, handle=5) at /usr/src/php-5.0.2/Zend/zend_objects.c:78 #12 0x4030572a in zend_objects_store_call_destructors (objects=0x4040c404) at /usr/src/php-5.0.2/Zend/zend_objects_API.c:54 #13 0x402df6ee in shutdown_executor () at /usr/src/php-5.0.2/Zend/zend_execute_API.c:209 #14 0x402edcb5 in zend_deactivate () at /usr/src/php-5.0.2/Zend/zend.c:818 #15 0x402a664b in php_request_shutdown (dummy=0x0) at /usr/src/php-5.0.2/main/main.c:1212 #16 0x4031ee3c in apache_php_module_main (r=0x811b8bc, display_source_mode=0) at /usr/src/php-5.0.2/sapi/apache/sapi_apache.c:60 #17 0x4031fd66 in send_php (r=0x811b8bc, display_source_mode=0, filename=0x811c3dc "/SPACE/ww3-dev/www/ww3ee/8.php") at /usr/src/php-5.0.2/sapi/apache/mod_php5.c:622 #18 0x4031fdd5 in send_parsed_php (r=0x811b8bc) at /usr/src/php-5.0.2/sapi/apache/mod_php5.c:637 #19 0x08058307 in ap_invoke_handler () #20 0x0806d39f in process_request_internal () #21 0x0806d400 in ap_process_request () #22 0x08064439 in child_main () #23 0x080645e4 in make_child () #24 0x0806474c in startup_childre
#29996 [Fbk->Opn]: segmention fault since final release of PHP5
ID: 29996 User updated by: thomas dot hebinck at digionline dot de Reported By: thomas dot hebinck at digionline dot de -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Linux Debian Woody PHP Version: 5.0.0 New Comment: there a tons of includes in there ... a few thousand lines of code ... Previous Comments: [2004-09-06 15:18:35] [EMAIL PROTECTED] What's in /SPACE/ww3-dev/www/ww3ee/8.php ? Are you able to reproduce it with this script? [2004-09-06 12:12:33] thomas dot hebinck at digionline dot de I know, this is far to less information to fix anything. When I add --with-debug, it seems, that everything breaks much earlier - even scripts, that work normally don't work any more. Bye, Thomas. ww3-dev:/# gdb /usr/local/apache1/bin/httpd gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, consider re-linking GNU gdb 2002-04-01-cvs Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...(no debugging symbols found)... (gdb) run -X Starting program: /usr/local/apache1/bin/httpd -X (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New Thread 1024 (LWP 12399)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 12399)] 0x400d8bb8 in free () from /lib/libc.so.6 (gdb) bt #0 0x400d8bb8 in free () from /lib/libc.so.6 #1 0x400d8aa3 in free () from /lib/libc.so.6 #2 0x402f5001 in zend_hash_del_key_or_index (ht=0x816b16c, arKey=0x824582c "p_parent", nKeyLength=9, h=755180190, flag=0) at /usr/src/php-5.0.1/Zend/zend_hash.c:495 #3 0x40302ccb in zend_std_unset_property (object=0xbfffeb80, member=0x814d7f4) at /usr/src/php-5.0.1/Zend/zend_object_handlers.c:506 #4 0x40317b52 in zend_unset_dim_obj_handler (execute_data=0xbfffe800, opline=0x814d7c4, op_array=0x81431e4) at /usr/src/php-5.0.1/Zend/zend_execute.c:3662 #5 0x403116f9 in execute (op_array=0x81431e4) at /usr/src/php-5.0.1/Zend/zend_execute.c:1400 #6 0x403153ff in zend_do_fcall_common_helper (execute_data=0xbfffe920, opline=0x8239da4, op_array=0x823b03c) at /usr/src/php-5.0.1/Zend/zend_execute.c:2737 #7 0x403158d0 in zend_do_fcall_by_name_handler (execute_data=0xbfffe920, opline=0x8239da4, op_array=0x823b03c) at /usr/src/php-5.0.1/Zend/zend_execute.c:2822 #8 0x403116f9 in execute (op_array=0x823b03c) at /usr/src/php-5.0.1/Zend/zend_execute.c:1400 #9 0x402e0cc4 in zend_call_function (fci=0xbfffead0, fci_cache=0xbfffea90) at /usr/src/php-5.0.1/Zend/zend_execute_API.c:835 #10 0x402fecee in zend_call_method (object_pp=0xbfffeb7c, obj_ce=0x81db894, fn_proxy=0x0, function_name=0x403a4957 "__destruct", function_name_len=10, retval_ptr_ptr=0x0, param_count=0, arg1=0x0, arg2=0x0) at /usr/src/php-5.0.1/Zend/zend_interfaces.c:79 #11 0x40301c9f in zend_objects_destroy_object (object=0x81d9774, handle=5) at /usr/src/php-5.0.1/Zend/zend_objects.c:78 #12 0x40304282 in zend_objects_store_call_destructors (objects=0x4040b6a4) at /usr/src/php-5.0.1/Zend/zend_objects_API.c:54 #13 0x402decf2 in shutdown_executor () at /usr/src/php-5.0.1/Zend/zend_execute_API.c:209 #14 0x402eceed in zend_deactivate () at /usr/src/php-5.0.1/Zend/zend.c:819 #15 0x402a5ca7 in php_request_shutdown (dummy=0x0) at /usr/src/php-5.0.1/main/main.c:1212 #16 0x4031d858 in apache_php_module_main (r=0x811b734, display_source_mode=0) at /usr/src/php-5.0.1/sapi/apache/sapi_apache.c:60 #17 0x4031e782 in send_php (r=0x811b734, display_source_mode=0, filename=0x811c254 "/SPACE/ww3-dev/www/ww3ee/8.php") at /usr/src/php-5.0.1/sapi/apache/mod_php5.c:622 #18 0x4031e7f1 in send_parsed_php (r=0x811b734) at /usr/src/php-5.0.1/sapi/apache/mod_php5.c:637 #19 0x08058307 in ap_invoke_handler () #20 0x0806d39f in process_request_internal () #21 0x0806d400 in ap_process_request () #22 0x08064439 in child_main () #23 0x080645e4 in make_child () #24 0x0806474c in startup_children () #25 0x08064e42 in standalone_main () #26 0x0806568a in main () #27 0x4008314f in __libc_start_main () from /lib/libc.so.6 (gdb) [2004-09-06 11:36:17] [EMAIL PROTECTED] If you're unable to reproduce it than why do you think we can fix it? Try at least to generate a gdb backtrace. ------------------------ [2004-09-06 11:32:21] thomas dot hebinck at
#29996 [Fbk->Opn]: segmention fault since final release of PHP5
ID: 29996 User updated by: thomas dot hebinck at digionline dot de Reported By: thomas dot hebinck at digionline dot de -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Linux Debian Woody PHP Version: 5.0.0 New Comment: I know, this is far to less information to fix anything. When I add --with-debug, it seems, that everything breaks much earlier - even scripts, that work normally don't work any more. Bye, Thomas. ww3-dev:/# gdb /usr/local/apache1/bin/httpd gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, consider re-linking GNU gdb 2002-04-01-cvs Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...(no debugging symbols found)... (gdb) run -X Starting program: /usr/local/apache1/bin/httpd -X (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New Thread 1024 (LWP 12399)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 12399)] 0x400d8bb8 in free () from /lib/libc.so.6 (gdb) bt #0 0x400d8bb8 in free () from /lib/libc.so.6 #1 0x400d8aa3 in free () from /lib/libc.so.6 #2 0x402f5001 in zend_hash_del_key_or_index (ht=0x816b16c, arKey=0x824582c "p_parent", nKeyLength=9, h=755180190, flag=0) at /usr/src/php-5.0.1/Zend/zend_hash.c:495 #3 0x40302ccb in zend_std_unset_property (object=0xbfffeb80, member=0x814d7f4) at /usr/src/php-5.0.1/Zend/zend_object_handlers.c:506 #4 0x40317b52 in zend_unset_dim_obj_handler (execute_data=0xbfffe800, opline=0x814d7c4, op_array=0x81431e4) at /usr/src/php-5.0.1/Zend/zend_execute.c:3662 #5 0x403116f9 in execute (op_array=0x81431e4) at /usr/src/php-5.0.1/Zend/zend_execute.c:1400 #6 0x403153ff in zend_do_fcall_common_helper (execute_data=0xbfffe920, opline=0x8239da4, op_array=0x823b03c) at /usr/src/php-5.0.1/Zend/zend_execute.c:2737 #7 0x403158d0 in zend_do_fcall_by_name_handler (execute_data=0xbfffe920, opline=0x8239da4, op_array=0x823b03c) at /usr/src/php-5.0.1/Zend/zend_execute.c:2822 #8 0x403116f9 in execute (op_array=0x823b03c) at /usr/src/php-5.0.1/Zend/zend_execute.c:1400 #9 0x402e0cc4 in zend_call_function (fci=0xbfffead0, fci_cache=0xbfffea90) at /usr/src/php-5.0.1/Zend/zend_execute_API.c:835 #10 0x402fecee in zend_call_method (object_pp=0xbfffeb7c, obj_ce=0x81db894, fn_proxy=0x0, function_name=0x403a4957 "__destruct", function_name_len=10, retval_ptr_ptr=0x0, param_count=0, arg1=0x0, arg2=0x0) at /usr/src/php-5.0.1/Zend/zend_interfaces.c:79 #11 0x40301c9f in zend_objects_destroy_object (object=0x81d9774, handle=5) at /usr/src/php-5.0.1/Zend/zend_objects.c:78 #12 0x40304282 in zend_objects_store_call_destructors (objects=0x4040b6a4) at /usr/src/php-5.0.1/Zend/zend_objects_API.c:54 #13 0x402decf2 in shutdown_executor () at /usr/src/php-5.0.1/Zend/zend_execute_API.c:209 #14 0x402eceed in zend_deactivate () at /usr/src/php-5.0.1/Zend/zend.c:819 #15 0x402a5ca7 in php_request_shutdown (dummy=0x0) at /usr/src/php-5.0.1/main/main.c:1212 #16 0x4031d858 in apache_php_module_main (r=0x811b734, display_source_mode=0) at /usr/src/php-5.0.1/sapi/apache/sapi_apache.c:60 #17 0x4031e782 in send_php (r=0x811b734, display_source_mode=0, filename=0x811c254 "/SPACE/ww3-dev/www/ww3ee/8.php") at /usr/src/php-5.0.1/sapi/apache/mod_php5.c:622 #18 0x4031e7f1 in send_parsed_php (r=0x811b734) at /usr/src/php-5.0.1/sapi/apache/mod_php5.c:637 #19 0x08058307 in ap_invoke_handler () #20 0x0806d39f in process_request_internal () #21 0x0806d400 in ap_process_request () #22 0x08064439 in child_main () #23 0x080645e4 in make_child () #24 0x0806474c in startup_children () #25 0x08064e42 in standalone_main () #26 0x0806568a in main () #27 0x4008314f in __libc_start_main () from /lib/libc.so.6 (gdb) Previous Comments: [2004-09-06 11:36:17] [EMAIL PROTECTED] If you're unable to reproduce it than why do you think we can fix it? Try at least to generate a gdb backtrace. ------------------------ [2004-09-06 11:32:21] thomas dot hebinck at digionline dot de Description: Hi, there is some strange error in the release version of PHP5: I use a massive amoung of objects and in some scripts, I get a segmentation fault after the whole script run. This results in a missing end of die output (since PHP is called from within apache). I tried 5.0.0, 5.0.1 and 5.1-dev from yesterday. I switched back to 5.0.0RC3 and everything is fine again. I k
#29996 [NEW]: segmention fault since final release of PHP5
From: thomas dot hebinck at digionline dot de Operating system: Linux Debian Woody PHP version: 5.0.0 PHP Bug Type: Reproducible crash Bug description: segmention fault since final release of PHP5 Description: Hi, there is some strange error in the release version of PHP5: I use a massive amoung of objects and in some scripts, I get a segmentation fault after the whole script run. This results in a missing end of die output (since PHP is called from within apache). I tried 5.0.0, 5.0.1 and 5.1-dev from yesterday. I switched back to 5.0.0RC3 and everything is fine again. I know, this will be "useless" as a bug report, but maybe others have the same problem. And then at least it is a hint, when the bug went into the source code. Bye, Thomas. --- sh ./configure \ --disable-ipv6 \ --with-apxs=/usr/local/apache1/bin/apxs \ --prefix=/usr/local/apache1/php \ --with-config-file-path=/usr/local/apache1/php \ --disable-all \ --with-ldap \ --with-pgsql=/usr/local/pgsql \ --with-gmp \ --enable-xml \ --enable-libxml \ --with-pcre-regex \ --with-imap=/usr/src/imap-2004a \ --without-imap-ssl \ Reproduce code: --- sorry - I cannot reproduce the bug with only a few lines of code. Expected result: ;-) Actual result: -- [Sun Sep 5 15:59:54 2004] [notice] Apache/1.3.31 (Unix) PHP/5.0.0 configured -- resuming normal operations [Sun Sep 5 15:59:54 2004] [notice] Accept mutex: sysvsem (Default: sysvsem) [Sun Sep 5 16:00:01 2004] [notice] child pid 30806 exit signal Segmentation fault (11) [Sun Sep 5 16:00:21 2004] [notice] child pid 30818 exit signal Segmentation fault (11) [Sun Sep 5 16:00:21 2004] [notice] child pid 30817 exit signal Segmentation fault (11) [Sun Sep 5 16:00:21 2004] [notice] child pid 30805 exit signal Segmentation fault (11) [Sun Sep 5 16:00:22 2004] [notice] child pid 30847 exit signal Segmentation fault (11) [Sun Sep 5 16:00:22 2004] [notice] child pid 30846 exit signal Segmentation fault (11) [Sun Sep 5 16:00:22 2004] [notice] child pid 30839 exit signal Segmentation fault (11) [Sun Sep 5 16:00:22 2004] [notice] child pid 30803 exit signal Segmentation fault (11) -- Edit bug report at http://bugs.php.net/?id=29996&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29996&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29996&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29996&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=29996&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=29996&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29996&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29996&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29996&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29996&r=support Expected behavior: http://bugs.php.net/fix.php?id=29996&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29996&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29996&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=29996&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29996&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=29996&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29996&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29996&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29996&r=float
#25528 [NEW]: make: *** [ext/bcmath/bcmath.lo] Error 1
From: thomas dot hebinck at digionline dot de Operating system: Linux Debian Woody PHP version: 5CVS-2003-09-13 (dev) PHP Bug Type: Compile Failure Bug description: make: *** [ext/bcmath/bcmath.lo] Error 1 Description: I think, there is not much to say ;-) Bye, Thomas. Reproduce code: --- ./configure \ --with-apxs2=/usr/local/apache/bin/apxs \ --prefix=/usr/local/apache/php \ --with-config-file-path=/usr/local/apache/php \ --with-ldap \ --with-pgsql=/usr/local/pgsql \ --with-imap=/usr/src/imap-2002d/c-client \ --with-imap-ssl=/usr/local/ssl \ --enable-bcmath make Actual result: -- w23:/usr/src/php5-200309132130# make /bin/sh /usr/src/php5-200309132130/libtool --silent --preserve-dup-deps --mode=compile gcc -I/usr/src/php5-200309132130/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/usr/src/php5-200309132130/ext/bcmath/ -DPHP_ATOM_INC -I/usr/src/php5-200309132130/include -I/usr/src/php5-200309132130/main -I/usr/src/php5-200309132130 -I/usr/src/php5-200309132130/Zend -I/usr/local/include/libxml2 -I/usr/src/imap-2002d/c-client -I/usr/local/include -I/usr/local/pgsql/include -I/usr/src/php5-200309132130/TSRM -g -O2 -prefer-pic -c /usr/src/php5-200309132130/ext/bcmath/bcmath.c -o ext/bcmath/bcmath.lo In file included from /usr/src/php5-200309132130/main/php.h:34, from /usr/src/php5-200309132130/ext/bcmath/bcmath.c:25: /usr/src/php5-200309132130/Zend/zend.h:357: argument format specified for non-function `error_function' /usr/src/php5-200309132130/Zend/zend.h:358: argument format specified for non-function `printf_function' /usr/src/php5-200309132130/Zend/zend.h:496: argument format specified for non-function `zend_printf' /usr/src/php5-200309132130/Zend/zend.h:502: argument format specified for non-function `zend_error_cb' make: *** [ext/bcmath/bcmath.lo] Error 1 -- Edit bug report at http://bugs.php.net/?id=25528&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25528&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25528&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25528&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25528&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25528&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25528&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25528&r=support Expected behavior: http://bugs.php.net/fix.php?id=25528&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25528&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25528&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25528&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25528&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25528&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25528&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25528&r=gnused
#25205 [NEW]: Class names case insensitiv
From: thomas dot hebinck at digionline dot de Operating system: Linux Debian Woody PHP version: 5CVS-2003-08-22 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: Class names case insensitiv Description: Class names are case insensitiv. __autoload always get lower-case class name. I think, this is not very important - but unusual ;-) Reproduce code: --- File 'case_insensitiv_class.php': '; } } ?> File 'case_insensitiv_main.php': '; require_once $className . '.php'; } $test = new cAsE_InsEnsItIv_clAss; ?> Expected result: __autoload of cAsE_InsEnsItIv_clAss and then some error ;-) Actual result: -- __autoload of case_insensitiv_class __construct of case_insensitiv_class -- Edit bug report at http://bugs.php.net/?id=25205&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25205&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25205&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25205&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25205&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25205&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25205&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25205&r=support Expected behavior: http://bugs.php.net/fix.php?id=25205&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25205&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25205&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25205&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25205&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25205&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25205&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25205&r=gnused
#25199 [NEW]: $this->a doesn't call $this->__get('a')
From: thomas dot hebinck at digionline dot de Operating system: Linux PHP version: 5CVS-2003-08-21 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: $this->a doesn't call $this->__get('a') Description: A call of $this->a creates a new public variable instead of calling __get('a') - even if this call is just defined and never used. (same problem in beta 1) Reproduce code: --- a; // this is the "bad" line } } $foo = new foo; echo '$foo->a = "' . $foo->a . '"'; ?> Expected result: $foo->a = "a" Actual result: -- $foo->a = "" -- Edit bug report at http://bugs.php.net/?id=25199&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25199&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25199&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25199&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25199&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25199&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25199&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25199&r=support Expected behavior: http://bugs.php.net/fix.php?id=25199&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25199&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25199&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25199&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25199&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25199&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25199&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25199&r=gnused
#24807 [Com]: Dereferencing objects and Property accesses with __get() and __set()
ID: 24807 Comment by: thomas dot hebinck at digionline dot de Reported By: Bertrand dot Willm at laposte dot net Status: Bogus Bug Type: Class/Object related Operating System: Windows XP PHP Version: 5.0.0b1 (beta1) New Comment: It works the old way: $test = $extObject->extProperty; $test->baseProperty = 'new'; How to switch this from 'bogus' back to 'open'? Previous Comments: [2003-07-29 12:49:10] Bertrand dot Willm at laposte dot net You suggest me to read ZEND_CHANGES but can't find anything corresponding to that in the www.php.net site (I use the "Search for" functionnality on the whole site). I look again on the page called "PHP: Changes in PHP 5/Zend Engine 2.0", the following new functionnality is explained: "Dereferencing objects returned from functions". As it is possible to deference object members and now it is possible to deference object returned from function, for me, not to be allowed deference object properties looks like a bug. It is because of things like this, that I found the __get and __set methods are an unsatsifactory answer to properties. [2003-07-29 07:26:17] [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 Suggest you read ZEND_CHANGES :) [2003-07-25 15:35:14] Bertrand dot Willm at laposte dot net Description: I try to use the following notation: $object->property1->property2 = 'value'; when property1 and property2 are properties we access trow __get and __set methods. calling __get with property1 return an object that defined __get and __set methods. but there is a warning explaining the object doesn't support property references. Reproduce code: --- text; } function __Set($name, $value) { $this->text = $value; } } class CExtClass { private $baseObject; function __construct() { $this->baseObject = new CBaseClass(); } function __Get() { return $this->baseObject; } } $extObject = new CExtClass(); echo $extObject->extProperty->baseProperty, ''; $extObject->extProperty->baseProperty = 'new'; echo $extObject->extProperty->baseProperty, ''; ?> Expected result: default new Actual result: -- default Warning: This object doesn't support property references in c:\sitesweb\www\test.php5 on line 22 default -- Edit this bug report at http://bugs.php.net/?id=24807&edit=1
#25187 [NEW]: Call of __get in a construtor does not work
From: thomas dot hebinck at digionline dot de Operating system: Linux PHP version: 5.0.0b1 (beta1) PHP Bug Type: Zend Engine 2 problem Bug description: Call of __get in a construtor does not work Description: The call of a property via __get from a constructor called the same way does not work. - $m is created - $m->s creates new class s (via m::__get) - the constructor of s calls $m->d->d_test - m::_get (for $m->d) is NOT called: Notice: Undefined property See the source - it should make it clear ;-) Reproduce code: --- class d { public function d_test() { return true; } } class s { function __construct() { global $m; $m->d->d_test(); } function s_test() { } } class m { function __get($property) { switch ($property) { case 'd': return new d; break; case 's': return new s; break; } } } $m=new m; $m->s->s_test(); Expected result: just nothing - there is no output to reduce the lines of source code. Actual result: -- Notice: Undefined property: m::$d in /www/w23_bug/test_bug.php on line 10 Fatal error: Call to a member function d_test() on a non-object in /www/w23_bug/test_bug.php on line 10 This is the line: $m->d->d_test(); -- Edit bug report at http://bugs.php.net/?id=25187&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25187&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25187&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25187&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25187&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25187&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25187&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25187&r=support Expected behavior: http://bugs.php.net/fix.php?id=25187&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25187&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25187&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25187&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25187&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25187&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25187&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25187&r=gnused