#43235 [Com]: Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt]
ID: 43235 Comment by: kenorb at gmail dot com Reported By: gashev at zahav dot net dot il Status: No Feedback Bug Type: ICONV related Operating System: Debian etch PHP Version: 5.2.5 New Comment: Similar problem on testing PHP 5.2.9 on Red Hat Enterprise Linux ES release 3: Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt] iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt] Test session_decode() function : variation [ext/session/tests/session_decode_variation3.phpt] Test session_encode() function : variation [ext/session/tests/session_encode_variation8.phpt] IPv6 Loopback test [ext/sockets/tests/ipv6loop.phpt] testing fsockopen() with udp sockets [ext/standard/tests/network/fsockopen_variation2.phpt] htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15) [ext/standard/tests/strings/htmlentities02.phpt] (warn: possibly braindead libc) htmlentities() test 4 (setlocale / ja_JP.EUC-JP) [ext/standard/tests/strings/htmlentities04.phpt] (warn: possibly braindead libc) htmlentities() test 15 (setlocale / KOI8-R) [ext/standard/tests/strings/htmlentities15.phpt] (warn: possibly braindead libc) Bug #40189 (test for truncated deflate, also part of erroneous fix for #40189) [ext/zlib/tests/bug_40189_2.phpt] Test gzcompress() function : basic functionality [ext/zlib/tests/gzcompress_basic1.phpt] zlib.inflate of gzip-encoded stream [ext/zlib/tests/zlib_filter_inflate2.phpt] -- Any hint? Previous Comments: [2009-03-26 17:18:52] mlaster at wolrdsynergy dot com So I am getting this same error. I uploaded my information. from the make test. I am guessing its ok to install? [2008-12-12 17:02:18] bugsdotphpdotnet at ominian dot net Experiencing the same problem but the weird part is visually I can't see why the tests fail. I've copied and pasted the test's code and ran it, copied the output and run diff against the test expected result and the test script output... no difference? $ TEST_PHP_EXECUTABLE='sapi/cli/php' sapi/cli/php -c /etc/php5/php.ini run-tests.php -c /etc/php5/php.ini ext/iconv/tests/bug16069.phpt = PHP : sapi/cli/php PHP_SAPI: cli PHP_VERSION : 5.2.6 ZEND_VERSION: 2.2.0 PHP_OS : Linux - Linux fozzie 2.6.18-53.1.6.el5 #1 SMP Wed Jan 23 11:28:47 EST 2008 x86_64 INI actual : /etc/php5/php.ini More .INIs : CWD : /home/davidw/packages/php-5.2.6 Extra dirs : = Running selected tests. FAIL Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt] = Number of tests :1 1 Tests skipped :0 ( 0.0%) Tests warned:0 ( 0.0%) ( 0.0%) Tests failed:1 (100.0%) (100.0%) Tests passed:0 ( 0.0%) ( 0.0%) - Time taken :0 seconds = = FAILED TEST SUMMARY - Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt] = Digging into it, I don't think this is a problem with PHP or the testing harness but with how Centos 5 handles unicode characters. It looks like it converts the unicode characters to hexidecimal representation but not the php output. [2007-12-22 07:05:26] morgon at mygamercard dot net Experiencing same issue on new CentOS 5 install. [r...@card3 php-5.2.5]# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.00GHz stepping: 3 cpu MHz : 2992.868 cache size : 2048 KB fdiv_bug: no hlt_bug : no f00f_bug: no coma_bug: no fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl cid cx16 xtpr bogomips: 5988.37 (Snip - two processors) Also, this may be related - I had previously had this build running (I admit I'm not a big 'make test'er) and would get all sorts of faults which seem to indicate a problem between PHP 5.2.5 and glibc *** glibc detected *** /usr/bin/php-cgi: malloc(): memory corruption (fast): 0x096fd108 **
#48300 [NEW]: crash in zif_file_put_contents
From: kenorb at gmail dot com Operating system: Linux PHP version: 5.2.9 PHP Bug Type: *General Issues Bug description: crash in zif_file_put_contents Description: See backtrace above. Reproduce code: --- .(gdb) backtrace #0 0x08202f0b in zif_file_put_contents (ht=147657200, return_value=0x20, return_value_ptr=0x0, this_ptr=0xafe2f6fc, return_value_used=4) at /home/redmine/php5/php-5.2.9/ext/standard/file.c:697 #1 0x0820368a in zif_tempnam (ht=32, return_value=0x4, return_value_ptr=0x0, this_ptr=0x8202ebc, return_value_used=147657200) at /home/redmine/php5/php-5.2.9/Zend/zend_variables.h:45 #2 0x08203884 in zif_popen (ht=8, return_value=0x4, return_value_ptr=0x0, this_ptr=0xafe2f6e4, return_value_used=- 1084251860) at /home/redmine/php5/php-5.2.9/ext/standard/file.c:1011 #3 0x0821d9f7 in zif_strtolower (ht=-1344080132, return_value=0xb5a74b40, return_value_ptr=0x0, this_ptr=0x820ca70, return_value_used=0) at /home/redmine/php5/php-5.2.9/ext/standard/string.c:1349 #4 0x0822aa0a in zif_is_callable (ht=-1344080156, return_value=0x8d88788, return_value_ptr=0xbf5fa128, this_ptr=0x8202ebc, return_value_used=147657200) at /home/redmine/php5/php-5.2.9/ext/standard/type.c:380 #5 0x0809de50 in is_counted_repeat (p=0x20 ) at /home/redmine/php5/php- 5.2.9/ext/pcre/pcrelib/pcre_compile.c:887 #6 0x0809bb2d in verify_callback (preverify_ok=-1084251808, ctx=0xafe2f6e4) at /home/redmine/php5/php- 5.2.9/ext/openssl/openssl.c:3759 Expected result: working Actual result: -- crashing (gdb) backtrace #0 0x08202f0b in zif_file_put_contents (ht=147657200, return_value=0x20, return_value_ptr=0x0, this_ptr=0xafe2f6fc, return_value_used=4) at /home/redmine/php5/php-5.2.9/ext/standard/file.c:697 #1 0x0820368a in zif_tempnam (ht=32, return_value=0x4, return_value_ptr=0x0, this_ptr=0x8202ebc, return_value_used=147657200) at /home/redmine/php5/php-5.2.9/Zend/zend_variables.h:45 #2 0x08203884 in zif_popen (ht=8, return_value=0x4, return_value_ptr=0x0, this_ptr=0xafe2f6e4, return_value_used=- 1084251860) at /home/redmine/php5/php-5.2.9/ext/standard/file.c:1011 #3 0x0821d9f7 in zif_strtolower (ht=-1344080132, return_value=0xb5a74b40, return_value_ptr=0x0, this_ptr=0x820ca70, return_value_used=0) at /home/redmine/php5/php-5.2.9/ext/standard/string.c:1349 #4 0x0822aa0a in zif_is_callable (ht=-1344080156, return_value=0x8d88788, return_value_ptr=0xbf5fa128, this_ptr=0x8202ebc, return_value_used=147657200) at /home/redmine/php5/php-5.2.9/ext/standard/type.c:380 #5 0x0809de50 in is_counted_repeat (p=0x20 ) at /home/redmine/php5/php- 5.2.9/ext/pcre/pcrelib/pcre_compile.c:887 #6 0x0809bb2d in verify_callback (preverify_ok=-1084251808, ctx=0xafe2f6e4) at /home/redmine/php5/php- 5.2.9/ext/openssl/openssl.c:3759 #7 0x08d88788 in ?? () #8 0xbf5fa12c in ?? () #9 0xb5a74b20 in ?? () #10 0xb5b21ddc in ?? () #11 0xafe2f6a4 in ?? () #12 0xb5b09044 in ?? () #13 0xafe2f6e4 in ?? () #14 0x08cd11f0 in ?? () #15 0x0010 in ?? () #16 0x0009 in ?? () #17 0xafe2f6cc in ?? () #18 0xb5b21ddc in ?? () #19 0xb5a74b40 in ?? () #20 0xbf5fa178 in ?? () -- Edit bug report at http://bugs.php.net/?id=48300&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48300&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48300&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48300&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48300&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48300&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48300&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48300&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48300&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48300&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48300&r=support Expected behavior: http://bugs.php.net/fix.php?id=48300&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48300&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48300&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48300&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48300&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=48300&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48300&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48300&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48300&r=fl
#48300 [Com]: crash in zif_file_put_contents
ID: 48300 Comment by: kenorb at gmail dot com Reported By: kenorb at gmail dot com Status: Feedback Bug Type: *General Issues Operating System: Linux PHP Version: 5.2.9 New Comment: Unfortunatelly I can't provide the code. Previous Comments: [2009-05-16 02:50:28] scott...@php.net 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 , is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. The backtrace helps but the code that caused it is needed to. [2009-05-16 02:03:04] kenorb at gmail dot com Description: See backtrace above. Reproduce code: --- .(gdb) backtrace #0 0x08202f0b in zif_file_put_contents (ht=147657200, return_value=0x20, return_value_ptr=0x0, this_ptr=0xafe2f6fc, return_value_used=4) at /home/redmine/php5/php-5.2.9/ext/standard/file.c:697 #1 0x0820368a in zif_tempnam (ht=32, return_value=0x4, return_value_ptr=0x0, this_ptr=0x8202ebc, return_value_used=147657200) at /home/redmine/php5/php-5.2.9/Zend/zend_variables.h:45 #2 0x08203884 in zif_popen (ht=8, return_value=0x4, return_value_ptr=0x0, this_ptr=0xafe2f6e4, return_value_used=- 1084251860) at /home/redmine/php5/php-5.2.9/ext/standard/file.c:1011 #3 0x0821d9f7 in zif_strtolower (ht=-1344080132, return_value=0xb5a74b40, return_value_ptr=0x0, this_ptr=0x820ca70, return_value_used=0) at /home/redmine/php5/php-5.2.9/ext/standard/string.c:1349 #4 0x0822aa0a in zif_is_callable (ht=-1344080156, return_value=0x8d88788, return_value_ptr=0xbf5fa128, this_ptr=0x8202ebc, return_value_used=147657200) at /home/redmine/php5/php-5.2.9/ext/standard/type.c:380 #5 0x0809de50 in is_counted_repeat (p=0x20 ) at /home/redmine/php5/php- 5.2.9/ext/pcre/pcrelib/pcre_compile.c:887 #6 0x0809bb2d in verify_callback (preverify_ok=-1084251808, ctx=0xafe2f6e4) at /home/redmine/php5/php- 5.2.9/ext/openssl/openssl.c:3759 Expected result: working Actual result: -- crashing (gdb) backtrace #0 0x08202f0b in zif_file_put_contents (ht=147657200, return_value=0x20, return_value_ptr=0x0, this_ptr=0xafe2f6fc, return_value_used=4) at /home/redmine/php5/php-5.2.9/ext/standard/file.c:697 #1 0x0820368a in zif_tempnam (ht=32, return_value=0x4, return_value_ptr=0x0, this_ptr=0x8202ebc, return_value_used=147657200) at /home/redmine/php5/php-5.2.9/Zend/zend_variables.h:45 #2 0x08203884 in zif_popen (ht=8, return_value=0x4, return_value_ptr=0x0, this_ptr=0xafe2f6e4, return_value_used=- 1084251860) at /home/redmine/php5/php-5.2.9/ext/standard/file.c:1011 #3 0x0821d9f7 in zif_strtolower (ht=-1344080132, return_value=0xb5a74b40, return_value_ptr=0x0, this_ptr=0x820ca70, return_value_used=0) at /home/redmine/php5/php-5.2.9/ext/standard/string.c:1349 #4 0x0822aa0a in zif_is_callable (ht=-1344080156, return_value=0x8d88788, return_value_ptr=0xbf5fa128, this_ptr=0x8202ebc, return_value_used=147657200) at /home/redmine/php5/php-5.2.9/ext/standard/type.c:380 #5 0x0809de50 in is_counted_repeat (p=0x20 ) at /home/redmine/php5/php- 5.2.9/ext/pcre/pcrelib/pcre_compile.c:887 #6 0x0809bb2d in verify_callback (preverify_ok=-1084251808, ctx=0xafe2f6e4) at /home/redmine/php5/php- 5.2.9/ext/openssl/openssl.c:3759 #7 0x08d88788 in ?? () #8 0xbf5fa12c in ?? () #9 0xb5a74b20 in ?? () #10 0xb5b21ddc in ?? () #11 0xafe2f6a4 in ?? () #12 0xb5b09044 in ?? () #13 0xafe2f6e4 in ?? () #14 0x08cd11f0 in ?? () #15 0x0010 in ?? () #16 0x0009 in ?? () #17 0xafe2f6cc in ?? () #18 0xb5b21ddc in ?? () #19 0xb5a74b40 in ?? () #20 0xbf5fa178 in ?? () -- Edit this bug report at http://bugs.php.net/?id=48300&edit=1
#48300 [Com]: crash in zif_file_put_contents
ID: 48300 Comment by: kenorb at gmail dot com Reported By: kenorb at gmail dot com Status: Feedback Bug Type: *General Issues Operating System: Linux PHP Version: 5.2.9 New Comment: Sorry, maybe backtrace of generated core was before I've upgraded to 5.10-dev and it's broken;/ Previous Comments: [2009-05-16 09:10:44] ras...@php.net That backtrace also makes very little sense. According to it we have the following chain of calls somehow: is_callable strtolower popen tempnam file_put_contents None of these functions actually call each other so I don't see how that backtrace could have occurred. [2009-05-16 09:05:45] paj...@php.net You don't have to publish the code of your application but a small script to reproduce this exact bug (short script). Without such script, there is no chance for us to reproduce (and fix) this problem. You should also try using a 5.2 CVS snapshot (or 5.3). [2009-05-16 04:12:27] kenorb at gmail dot com Unfortunatelly I can't provide the code. [2009-05-16 02:50:28] scott...@php.net 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 , is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. The backtrace helps but the code that caused it is needed to. ---- [2009-05-16 02:03:04] kenorb at gmail dot com Description: See backtrace above. Reproduce code: --- .(gdb) backtrace #0 0x08202f0b in zif_file_put_contents (ht=147657200, return_value=0x20, return_value_ptr=0x0, this_ptr=0xafe2f6fc, return_value_used=4) at /home/redmine/php5/php-5.2.9/ext/standard/file.c:697 #1 0x0820368a in zif_tempnam (ht=32, return_value=0x4, return_value_ptr=0x0, this_ptr=0x8202ebc, return_value_used=147657200) at /home/redmine/php5/php-5.2.9/Zend/zend_variables.h:45 #2 0x08203884 in zif_popen (ht=8, return_value=0x4, return_value_ptr=0x0, this_ptr=0xafe2f6e4, return_value_used=- 1084251860) at /home/redmine/php5/php-5.2.9/ext/standard/file.c:1011 #3 0x0821d9f7 in zif_strtolower (ht=-1344080132, return_value=0xb5a74b40, return_value_ptr=0x0, this_ptr=0x820ca70, return_value_used=0) at /home/redmine/php5/php-5.2.9/ext/standard/string.c:1349 #4 0x0822aa0a in zif_is_callable (ht=-1344080156, return_value=0x8d88788, return_value_ptr=0xbf5fa128, this_ptr=0x8202ebc, return_value_used=147657200) at /home/redmine/php5/php-5.2.9/ext/standard/type.c:380 #5 0x0809de50 in is_counted_repeat (p=0x20 ) at /home/redmine/php5/php- 5.2.9/ext/pcre/pcrelib/pcre_compile.c:887 #6 0x0809bb2d in verify_callback (preverify_ok=-1084251808, ctx=0xafe2f6e4) at /home/redmine/php5/php- 5.2.9/ext/openssl/openssl.c:3759 Expected result: working Actual result: -- crashing (gdb) backtrace #0 0x08202f0b in zif_file_put_contents (ht=147657200, return_value=0x20, return_value_ptr=0x0, this_ptr=0xafe2f6fc, return_value_used=4) at /home/redmine/php5/php-5.2.9/ext/standard/file.c:697 #1 0x0820368a in zif_tempnam (ht=32, return_value=0x4, return_value_ptr=0x0, this_ptr=0x8202ebc, return_value_used=147657200) at /home/redmine/php5/php-5.2.9/Zend/zend_variables.h:45 #2 0x08203884 in zif_popen (ht=8, return_value=0x4, return_value_ptr=0x0, this_ptr=0xafe2f6e4, return_value_used=- 1084251860) at /home/redmine/php5/php-5.2.9/ext/standard/file.c:1011 #3 0x0821d9f7 in zif_strtolower (ht=-1344080132, return_value=0xb5a74b40, return_value_ptr=0x0, this_ptr=0x820ca70, return_value_used=0) at /home/redmine/php5/php-5.2.9/ext/standard/string.c:1349 #4 0x0822aa0a in zif_is_callable (ht=-1344080156, return_value=0x8d88788, return_value_ptr=0xbf5fa128, this_ptr=0x8202ebc, return_value_used=147657200) at /home/redmine/php5/php-5.2.9/ext/standard/type.c:380 #5 0x0809de50 in is_counted_repeat (p=0x20 ) at /home/redmine/php5/php- 5.2.9/ext/pcre/pcrelib/pcre_compile.c:887 #6 0x0809bb2d in verify_callback (preverify_ok=-1084251808, ctx=0xafe2f6e4) at /home/redmine/php5/php- 5.2.9/ext/openssl/openssl.c:3759 #7 0x08d88788 in ?? () #8 0xbf5fa12c in ?? () #9 0xb5a74b20 in ?? () #10 0xb5b21ddc in ?? () #11 0xafe2f6a4 in ?? () #12 0xb5b09044 in ?? () #13 0xafe2f6e4 in ?? () #14 0x08cd11f0 in ?? () #15 0x0010 in ?? () #1
#20943 [Com]: header("HTTP/1.1 nnn xxx") not working under Apache
ID: 20943 Comment by: kenorb at gmail dot com Reported By: michele dot manzato at verona dot miz dot it Status: No Feedback Bug Type: Output Control Operating System: WIN2K, Apache 1.3.x/2.0.x PHP Version: 4.2.3 New Comment: The same problem. Environment: PHP-CGI: 5.10-dev (tested with 5.2.8/5.2.9 as well) OS: Red Hat Enterprise Linux ES release 3 (Taroon Update 9) Apache: Apache/1.3.33 Not working code: which cause: 'Internal Server Error' page Working code: Related to the same PHP bugs: #3884 #11375 #20416 #41661 Any help? Previous Comments: [2003-01-02 18:45:58] sni...@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. [2002-12-19 23:33:29] il...@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip You may also want to try a latest Apache 2, many bugs were fixed between 2.0.40 & 2.0.43, which is the current version. [2002-12-14 05:19:07] phpbugs at startearning dot com Hi, I just spent a while investigating a simular problem to this one:- header("HTTP/1.0 403 Unauthorized"); Was sending a header through to my machine but it was not prompting my browser to display the correct message (IE & Mozilla) I also noted that 404's were not working either. Cutting a long story short I manipulated my headers so they looked simular to a good 404 & came up with the following which now has the correct effect on my browser. kkk My environment is: Redhat Linux 8.0 Apache 2.0.40 PHP 4.2.2 I suspect this is an interaction problem between PHP 4.2.x and Apache 2.0.x . This also started occurring on my home Linux machine after I upgraded to apache 2.0.40 and I fixed it using the same method. Hope this helps someone Rob [2002-12-12 03:49:58] michele dot manzato at verona dot miz dot it Yes, by using this distrib it works. Hovever if I run php-cgi.exe from command line I get this output: --- Content-type: text/html X-Powered-By: PHP/4.4.0-dev Hello --- so the HTTP header gets stripped. If I change the header in header("HTTP/1.1 500 Server Error") I get this: --- Status: 500 Content-type: text/html X-Powered-By: PHP/4.4.0-dev Hello --- thus the HTTP Header is converted to a "Status:" header line. Fine, but shouldn't Apache be able to handle "HTTP/1.1 nnn xxx" as well? Michele [2002-12-11 11:55:23] der...@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip 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/20943 -- Edit this bug report at http://bugs.php.net/?id=20943&edit=1
#48347 [NEW]: Connection Interrupted after invalid preg_match_all
From: kenorb at gmail dot com Operating system: Windows7 PHP version: 5.2.9 PHP Bug Type: Reproducible crash Bug description: Connection Interrupted after invalid preg_match_all Description: Following code crashing whole website. A could reproduce it with php5.2.9-1 on Win7 (using WAMP). I couldn't on 5.2.6 on FreeBSD configuration. Reproduce code: --- $data = "; \$Id: administerusersbyrole.info,v 1.1.2.1 2009/01/27 20:40:40 smokris Exp \$\nname = Administer Users by Role\ndescription = \"Allows users with 'administer users' permission and a role (specified in 'Permissions') to edit/delete other users with a specified role. If the user being edited has multiple roles, the user doing the editing must have permission to edit ALL of the user being edited's roles. Also provides control over user creation. Works well in conjunction with role_delegation.\"\ncore = 6.x\n\n; Information added by drupal.org packaging script on 2009-01-28\nversion = \"6.x-1.3\"\ncore = \"6.x\"\nproject = \"administerusersbyrole\"\ndatestamp = \"1233114605\"\n\n"; preg_match_all(' @^\s* # Start at the beginning of a line, ignoring leading whitespace ((?: [^=;\[\]]|# Key names cannot contain equal signs, semi-colons or square brackets, \[[^\[\]]*\] # unless they are balanced and not nested )+?) \s*=\s* # Key/value pairs are separated by equal signs (ignoring white-space) (?: ("(?:[^"]|(?<=)")*")| # Double-quoted string, which may contain slash-escaped quotes/slashes (\'(?:[^\']|(?<=)\')*\')| # Single-quoted string, which may contain slash-escaped quotes/slashes ([^\r\n]*?) # Non-quoted string )\s*$ # Stop at the next end of a line, ignoring trailing whitespace @msx', $data, $matches, PREG_SET_ORDER); Expected result: Continue execution. Actual result: -- On Firefox: Connection Interrupted On Chrome: Error 101 (net::ERR_CONNECTION_RESET): Unknown error. -- Edit bug report at http://bugs.php.net/?id=48347&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48347&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48347&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48347&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48347&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48347&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48347&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48347&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48347&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48347&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48347&r=support Expected behavior: http://bugs.php.net/fix.php?id=48347&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48347&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48347&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48347&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48347&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=48347&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48347&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48347&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48347&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48347&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48347&r=mysqlcfg
#48347 [Com]: Connection Interrupted after invalid preg_match_all
ID: 48347 Comment by: kenorb at gmail dot com Reported By: kenorb at gmail dot com Status: Open Bug Type: Reproducible crash Operating System: Windows7 PHP Version: 5.2.9 New Comment: Could be related to bug: #20698 (but of course I can't add a comment there) Previous Comments: [2009-05-20 19:15:52] kenorb at gmail dot com Description: Following code crashing whole website. A could reproduce it with php5.2.9-1 on Win7 (using WAMP). I couldn't on 5.2.6 on FreeBSD configuration. Reproduce code: --- $data = "; \$Id: administerusersbyrole.info,v 1.1.2.1 2009/01/27 20:40:40 smokris Exp \$\nname = Administer Users by Role\ndescription = \"Allows users with 'administer users' permission and a role (specified in 'Permissions') to edit/delete other users with a specified role. If the user being edited has multiple roles, the user doing the editing must have permission to edit ALL of the user being edited's roles. Also provides control over user creation. Works well in conjunction with role_delegation.\"\ncore = 6.x\n\n; Information added by drupal.org packaging script on 2009-01-28\nversion = \"6.x-1.3\"\ncore = \"6.x\"\nproject = \"administerusersbyrole\"\ndatestamp = \"1233114605\"\n\n"; preg_match_all(' @^\s* # Start at the beginning of a line, ignoring leading whitespace ((?: [^=;\[\]]|# Key names cannot contain equal signs, semi-colons or square brackets, \[[^\[\]]*\] # unless they are balanced and not nested )+?) \s*=\s* # Key/value pairs are separated by equal signs (ignoring white-space) (?: ("(?:[^"]|(?<=)")*")| # Double-quoted string, which may contain slash-escaped quotes/slashes (\'(?:[^\']|(?<=)\')*\')| # Single-quoted string, which may contain slash-escaped quotes/slashes ([^\r\n]*?) # Non-quoted string )\s*$ # Stop at the next end of a line, ignoring trailing whitespace @msx', $data, $matches, PREG_SET_ORDER); Expected result: Continue execution. Actual result: -- On Firefox: Connection Interrupted On Chrome: Error 101 (net::ERR_CONNECTION_RESET): Unknown error. -- Edit this bug report at http://bugs.php.net/?id=48347&edit=1
#44905 [Com]: PHP 5.2.6 fails to load PostgreSQL related libraries
ID: 44905 Comment by: kenorb at gmail dot com Reported By: ionut dot stan at yahoo dot com Status: Assigned Bug Type: Dynamic loading Operating System: Windows XP professional 64bit PHP Version: 5.2.6 Assigned To: pajoye New Comment: Hi, After installed WAMP 2.0 on Vista and I have the same problem;( It will be fixed in next version? Previous Comments: [2008-06-17 07:26:54] travisvz at gmail dot com I have also experienced this problem (Apache 2.2 with PHP 5.2.6 on Windows XP Pro 32-bit). I have found another workaround that may be simpler if your PostgreSQL 8.3 is on the same system as your PHP installation: Simply add your PostgreSQL bin directory ("C:\Program Files\PostgreSQL\8.3\bin" on my system) to your system path. Same effect as copying the necessary libraries to your PHP directory, but perhaps easier to maintain (especially once a fix is found for this problem). [2008-06-03 20:31:34] eric at myprojects dot srhost dot info I have tested on 32bit windows that pgsql extension could loaded but required download some files from pgsql server 8.3.1 binary. This can be download from offical site or I have packed a small archive that could downloaded. url: pgserver offical site download http://wwwmaster.postgresql.org/download/mirrors-ftp?file=%2Fbinary%2Fv8.3.1%2Fwin32%2Fpostgresql-8.3.1-1-binaries-no-installer.zip small archive. http://myprojects.srhost.info/download/php_pgsql_files.zip [2008-05-31 08:21:43] [EMAIL PROTECTED] "How difficult can it be to test the most basic things, like starting php, before making a release? Good grief. If you can't do the simple things why do you think people should trust you with the complex things?" How difficult it is to test the RC? How difficult it is to report issues before the stable release instead of waiting the final day? That being said, we do run php and the tests suite before any release. But as some dlls are in the path, I did not detect that the new version (we upgraded libpq in 5.2.6, different version than with 5.2.5) was not static by default. Given the time we had to pack this release, I'm actually very happy that only this error remains (and have an easy work around). [2008-05-31 07:50:52] no at where dot zz How difficult can it be to test the most basic things, like starting php, before making a release? Good grief. If you can't do the simple things why do you think people should trust you with the complex things? [2008-05-30 12:14:58] [EMAIL PROTECTED] The safer work around is to use the php 5.2.5 DLL extension. 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/44905 -- Edit this bug report at http://bugs.php.net/?id=44905&edit=1
#43001 [NEW]: crashing
From: kenorb at gmail dot com Operating system: Windows Vista PHP version: 5.2CVS-2007-10-16 (snap) PHP Bug Type: Reproducible crash Bug description: crashing Description: I'm using some functions like: function_exists, rename_function, eval and custom function for set_handler_error. I tested on PHP 5.3(snap) and it still crashing. Reproduce code: --- something like that: foreach ($opt_cache_func as $func => $func_hook) { if (function_exists($func) && rename_function($func,'org_'.$func)) { if (empty($func_hook) || !is_string($func_hook)) $func_hook = $def_func; print 'dupa'; exit; $declaration = sprintf('function %s(%s) {%s}',$func,'',"return $func_hook(func_get_args(),'org_'.'$func');"); eval($declaration); } } Expected result: Should not crashing:) Actual result: -- Type of Analysis Performed Crash Analysis Machine Name BRONEK-PC Operating System Windows Vista Number Of Processors 2 Process ID 7440 Process Image C:\wamp\Apache2\bin\httpd.exe System Up-Time 2 day(s) 03:28:01 Process Up-Time 00:08:32 Thread 2 - System ID 7904 Entry point msvcrt!_endthreadex+6f Create time 16/10/2007 22:21:17 Time spent in user mode 0 Days 0:0:0.390 Time spent in kernel mode 0 Days 0:0:0.452 Function Arg 1 Arg 2 Arg 3 Source php5ts!zval_ptr_dtor+7 06182000 0141fa4c 0x017af430 017af430 06182000 php5ts!call_user_function+66 017af430 06182000 php5ts!php_error_log+10f9 0141fa90 017c54c8 00e7a0e0 php5ts!execute+1c5 1ee0 301d2b72 PHP5TS!ZVAL_PTR_DTOR+7WARNING - DebugDiag was not able to locate debug symbols for php5ts.dll, so the information below may be incomplete. In httpd__PID__7440__Date__10_16_2007__Time_10_29_47PM__414__Second_Chance_Exception_C005.dmp the assembly instruction at php5ts!zval_ptr_dtor+7 in C:\wamp\Apache2\bin\php5ts.dll from The PHP Group has caused an access violation exception (0xC005) when trying to read from memory location 0x0008 on thread 2 Module Information Image Name: C:\wamp\Apache2\bin\php5ts.dll Symbol Type: Export Base address: 0x00de Time Stamp: Thu Aug 30 13:06:12 2007 Checksum: 0x Comments: COM DLL: False Company Name: The PHP Group ISAPIExtension: False File Description: PHP Script Interpreter ISAPIFilter: False File Version: 5.2.4.4 Managed DLL: False Internal Name: php5ts.dll VB DLL: False Legal Copyright: Copyright © 1997-2007 The PHP Group Loaded Image Name: php5ts.dll Legal Trademarks: PHP Mapped Image Name: C:\wamp\Apache2\bin\php5ts.dll Original filename: php5ts.dll Module name: php5ts Private Build: Single Threaded: False Product Name: PHP Script Interpreter Module Size: 4.86 MBytes Product Version: 5.2.4 Symbol File Name: php5ts.dll Special Build: & --- Type of Analysis Performed Crash Analysis Machine Name BRONEK-PC Operating System Windows Vista Number Of Processors 2 Process ID 9236 Process Image C:\wamp\Apache2\bin\httpd.exe System Up-Time 2 day(s) 03:33:40 Process Up-Time 00:05:22 Thread 35 - System ID 1544 Entry point msvcrt!_endthreadex+6f Create time 16/10/2007 22:30:22 Time spent in user mode 0 Days 0:0:0.374 Time spent in kernel mode 0 Days 0:0:0.312 Function Arg 1 Arg 2 Arg 3 Source php5ts!zval_ptr_dtor+7 06152000 0271fa4c 0x0175f430 0175f430 06152000 php5ts!call_user_function+66 0175f430 06152000 php5ts!php_error_log+10f9 0271fa90 017754c8 00e4a0e0 php5ts!execute+1c5 06151e88 017754c8 017754c8 php5ts!zend_hash_apply+40 0618e388 00f37b20 017754c8 php5ts!php_error_log+1046 0271ff88 56433230 php5ts!php_error_log+1022 001a 0271fd58 0271fdc8 php5ts!ts_resource_ex+15 10003593 015fa198 php5apache2_2+38d8 015fa198 0094bde0 015fa198 libhttpd!ap_run_handler+21 015fa198 015fa198 015fa198 libhttpd!ap_invoke_handler+ae 017a7270 0271ff18 libhttpd!ap_die+24e 015fa198 015eabe8 libhttpd!ap_get_request_note+1c7c 017a7270 017a7270 017a7270 libhttpd!ap_run_process_connection+21 017a7270 015c2cf8 0271ff60 libhttpd!ap_process_connection+33 017a7270 015f6188 libhttpd!ap_regkey_value_remove+c0c 017a7268 3a4bca54 msvcrt!_endthreadex+44 0271ffac 765b3833 01782f48 msvcrt!_endthreadex+ce 01782f48 0271ffec 77a5a9bd kernel32!BaseThreadInitThunk+e 017