#38111 [Fbk]: PHP crashes IIS worker process and application pool
ID: 38111 Updated by: [EMAIL PROTECTED] Reported By: svendavidh at hotmail dot com Status: Feedback Bug Type: IIS related Operating System: Windows Server 2003 Std. Ed. R2 PHP Version: 5.1.4 -Assigned To: +Assigned To: pajoye New Comment: To generate a usable backtrace see: http://bugs.php.net/bugs-generating-backtrace-win32.php A script to reproduce it could help as well (even if many scripts may crash, at least one can help to fix one issue). I'm waiting some new test systems with IIS6 and 7 and server 2k3, 2k8 and Vista. That will help to reproduce some of the issues you get. Previous Comments: [2008-06-25 03:31:25] administrator at newviewlandscape dot com Same problem running Windows 2003 Server SP2 and PHP 5.2.6. Is there a stable version of PHP for Windows 2003 Server SP2? I appears this bug exists though the entire 5.x version. [2008-06-25 03:15:19] kevin dot webb at f2bc dot net What's wrong with they backtrace that was provided in the [3 Mar 5:01pm UTC] oliver at webbworlds dot com post? [2008-06-19 08:43:48] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to Open. Thank you for helping us make PHP better. [2008-06-19 02:08:37] huyhk at yahoo dot com Same problem for me. PHP 5.1.6, Windows 2003 Standard Edition. I got Event ID 1009 in System Error log so often (10-15 minutes once). Running Debug Diagnotistic Tool, I got this message In w3wp__PID__7784__Date__06_18_2008__Time_10_18_24PM__844__First chance exception 0XC005.dmp an access violation exception (0xC005) occured on thread 35 when another module attempted to call the following unloaded module: php5ts.dll. [2008-06-11 14:36:42] alexdykes at gmail dot com I am also seeing this bug running Windows Home Server, this is basically Server 2k3 SBS edition. PHP seems to function correctly as does IIS however when logging into a new RDP session on the server i have to dismiss this error about 3 times. Its manual install of PHP rather than a binary install. I'm using PHP 5.2.6 IIS 6. 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/38111 -- Edit this bug report at http://bugs.php.net/?id=38111edit=1
#45352 [NEW]: Segmentation fault when executing bug41037.phpt on apache module
From: eyal at zend dot com Operating system: Linux PHP version: 5.2.6 PHP Bug Type: Scripting Engine problem Bug description: Segmentation fault when executing bug41037.phpt on apache module Description: I executed bug41037.phpt on apache module. The result I got is that first request passes successfully, but next requests causes segmentation fault. To reproduce place the script from reproduction code section in your htdocs and request it as follows: ab -n1000 -c10 [URL] Note that all zend extensions were not loaded at the time of the test Reproduce code: --- ?php function a() { echo hello; unregister_tick_function('a'); } declare (ticks=1); register_tick_function('a'); echo Done\n; ? Expected result: hello Warning\: unregister_tick_function\(\)\: Unable to delete tick function executed at the moment in .+? on line [0-9]+ Done hello Warning\: unregister_tick_function\(\)\: Unable to delete tick function executed at the moment in .+? on line [0-9]+ hello Warning\: unregister_tick_function\(\)\: Unable to delete tick function executed at the moment in .+? on line [0-9]+ Actual result: -- Segmentation fault BT: (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1216579920 (LWP 23236)] zend_llist_apply (l=0x0, func=0xb740a6f0 user_tick_function_call) at /php-5.2.6/Zend/zend_llist.c:192 192 for (element=l-head; element; element=element-next) { (gdb) bt #0 zend_llist_apply (l=0x0, func=0xb740a6f0 user_tick_function_call) at /php-5.2.6/Zend/zend_llist.c:192 #1 0xb7407f9c in run_user_tick_functions (tick_count=1) at /php-5.2.6/ext/standard/basic_functions.c:5364 #2 0xb747c068 in php_tick_iterator (data=0x83a3438, arg=0xbf8b77e0) at /php-5.2.6/main/php_ticks.c:64 #3 0xb74a42ec in zend_llist_apply_with_argument (l=0xb77a2444, func=0xb747c050 php_tick_iterator, arg=0xbf8b77e0) at /php-5.2.6/Zend/zend_llist.c:236 #4 0xb747c042 in php_run_ticks (count=1) at /php-5.2.6/main/php_ticks.c:71 #5 0xb74c98d5 in ZEND_TICKS_SPEC_CONST_HANDLER (execute_data=0xbf8b7850) at /php-5.2.6/Zend/zend_vm_execute.h:2377 #6 0xb74cae28 in execute (op_array=0x835ff88) at /php-5.2.6/Zend/zend_vm_execute.h:92 #7 0xb74ad404 in zend_execute_scripts (type=8, retval=value optimized out, file_count=3) at /php-5.2.6/Zend/zend.c:1134 #8 0xb746dc60 in php_execute_script (primary_file=0xbf8b9af8) at /php-5.2.6/main/main.c:2005 #9 0xb7528591 in php_handler (r=0x83a1478) at /php-5.2.6/sapi/apache2handler/sapi_apache2.c:629 #10 0x08079259 in ap_run_handler () #11 0x0807c5b7 in ap_invoke_handler () #12 0x08089998 in ap_process_request () #13 0x08086c9b in ?? () #14 0x083a1478 in ?? () #15 0x0004 in ?? () #16 0x083a1478 in ?? () #17 0x in ?? () -- Edit bug report at http://bugs.php.net/?id=45352edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45352r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45352r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45352r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45352r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45352r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45352r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45352r=needscript Try newer version:http://bugs.php.net/fix.php?id=45352r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45352r=support Expected behavior:http://bugs.php.net/fix.php?id=45352r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45352r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45352r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45352r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45352r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45352r=dst IIS Stability:http://bugs.php.net/fix.php?id=45352r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45352r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45352r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45352r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45352r=mysqlcfg
#44551 [Com]: php script don't send output/STDOUT to apache
ID: 44551 Comment by: john dot walsh at mini-net dot co dot uk Reported By: laurent_baillif at hotmail dot com Status: Open Bug Type: Apache2 related Operating System: * PHP Version: 5.2.5 New Comment: Hi, I had a similar problem - stdout not getting to apache, but worked from the command line. I tried switching to using echo (with carefully constructed strings), but that still didn't work. Then, just to be sure, I put an echo z at the start (top level) of my script. The 'z' came through, along will all the rest of my scripts output. I changed the echo z to echo - the script continued to work. So it seamed that stdout needed some kick-into-life usage, before it would work from my functions. So something to try. Note: I was outputting binary data, and I think the first character would have been value 0x0A. Yours, John. Previous Comments: [2008-03-27 15:28:19] laurent_baillif at hotmail dot com Description: Hello, I have an issue with STDOUT/OUTPUT of PHP. Im about to use a PHP script for a RewriteMap directive inside APACHE. And I have identified that APACHE never receive the output from my PHP script and this after trying several way to send the output and also on several platform (winXP/apache2/PHP5 OPENSUSE/apache2/PHP5.2.5) Thanks for your feedback Regards, Reproduce code: --- I have this configuration in a virtual host of APACHE (Works fine if I put a Perl script instead of PHP) VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/mywork/web/partenaire ServerName mytest.mydomain.com DirectoryIndex index.php ErrorLog /home/mywork/log/apache/error.log LogLevel debug RewriteLog /home/mywork/log/apache/rewrite.log RewriteLogLevel 9 RewriteEngine on #RewriteLock /home/mywork/web/partenaire/test/rewrite.lock #RewriteMap rewritemap prg:/home/mywork/web/partenaire/test/rewritemap.perl RewriteMap rewritemap prg:/home/mywork/web/partenaire/test/rewritemap.php RewriteOptions Inherit RewriteRule ^/test/(.*)$ ${rewritemap:%{REQUEST_URI}} [L] Directory /home/mywork/web/partenaire Options FollowSymLinks AllowOverride all Order allow, deny Allow from all /Directory /VirtualHost I can confirm my PHP script is working fine from the console (read STDIN and write STDOUT) and when it is start with apache, he receive correctly the STDIN but never send back the STDOUT. I have tried several configurations in my script and APACHE never get the STDOUT and just hang or return a blank URL. My rewritemap.php script looks like this: #!/usr/bin/php ?php //Flag to verify the script is starting //$handle = fopen (home/stat.txt, 'a+'); //fwrite($handle, date(H).h.date(i).m.date(s).: start of the script\r\n); //fclose($handle); $stdin = fopen ('php://stdin', 'r'); $output = fopen('php://output', 'w'); ob_implicit_flush (true); // Use unbuffered output while ($line = fgets ($stdin)) { $line = trim($line); //Flag to verify the script is receinving STDIN //$handle = fopen (home/stat.txt, 'a+'); //fwrite($handle, date(H).h.date(i).m.date(s).: Just receive: $line \r\n); //fclose($handle); fwrite(STDOUT,mynewURL?.$line); //try this one and didnt work with apache fwrite($output,mynewURL?.$line); //try this with OUTPUT and didnt work with neither echo mynewURL?.$line//try this one also but only works with the console } ? Expected result: I can confirm my PHP script is working fine from the console (read STDIN and write STDOUT) and when it is start with apache, he receive correctly the STDIN but never send back the STDOUT. With the same configuration a perl script is working fine for apache. I have tried several configurations in my php script and APACHE never get the STDOUT and just hang or return a blank URL. Actual result: -- Blank url or apache hang. -- Edit this bug report at http://bugs.php.net/?id=44551edit=1
#45353 [NEW]: += Operand Empties Variable
From: phpbugs dot mp7jir at stevenroddis dot com Operating system: Windows XP PHP version: 5.2.6 PHP Bug Type: Scripting Engine problem Bug description: += Operand Empties Variable Description: += operand empties variable, see code for more details. Reproduce code: --- ?php //Running PHP Version 5.2.6 on Windows XP $foo = '_123'; $bar = ''; $foo += $bar; echo $foo; ? Expected result: _123 Actual result: -- nothing Checked with a debugger, $foo += $bar; makes $foo = null; -- Edit bug report at http://bugs.php.net/?id=45353edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45353r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45353r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45353r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45353r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45353r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45353r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45353r=needscript Try newer version:http://bugs.php.net/fix.php?id=45353r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45353r=support Expected behavior:http://bugs.php.net/fix.php?id=45353r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45353r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45353r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45353r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45353r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45353r=dst IIS Stability:http://bugs.php.net/fix.php?id=45353r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45353r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45353r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45353r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45353r=mysqlcfg
#45353 [Opn-Bgs]: += Operand Empties Variable
ID: 45353 User updated by: phpbugs dot mp7jir at stevenroddis dot com Reported By: phpbugs dot mp7jir at stevenroddis dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows XP PHP Version: 5.2.6 New Comment: n Previous Comments: [2008-06-25 11:53:28] phpbugs dot mp7jir at stevenroddis dot com Description: += operand empties variable, see code for more details. Reproduce code: --- ?php //Running PHP Version 5.2.6 on Windows XP $foo = '_123'; $bar = ''; $foo += $bar; echo $foo; ? Expected result: _123 Actual result: -- nothing Checked with a debugger, $foo += $bar; makes $foo = null; -- Edit this bug report at http://bugs.php.net/?id=45353edit=1
#45353 [Bgs]: += Operand Empties Variable
ID: 45353 User updated by: null at null dot invalid -Reported By: phpbugs dot mp7jir at stevenroddis dot com +Reported By: null at null dot invalid Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows XP PHP Version: 5.2.6 New Comment: n Previous Comments: [2008-06-25 11:58:03] phpbugs dot mp7jir at stevenroddis dot com n [2008-06-25 11:53:28] null at null dot invalid Description: += operand empties variable, see code for more details. Reproduce code: --- ?php //Running PHP Version 5.2.6 on Windows XP $foo = '_123'; $bar = ''; $foo += $bar; echo $foo; ? Expected result: _123 Actual result: -- nothing Checked with a debugger, $foo += $bar; makes $foo = null; -- Edit this bug report at http://bugs.php.net/?id=45353edit=1
#45353 [Bgs]: Please Delete
ID: 45353 User updated by: null at null dot invalid -Summary: += Operand Empties Variable Reported By: null at null dot invalid Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows XP PHP Version: 5.2.6 New Comment: n Previous Comments: [2008-06-25 11:59:02] null at null dot invalid n [2008-06-25 11:58:03] phpbugs dot mp7jir at stevenroddis dot com n [2008-06-25 11:53:28] null at null dot invalid Description: += operand empties variable, see code for more details. Reproduce code: --- ?php //Running PHP Version 5.2.6 on Windows XP $foo = '_123'; $bar = ''; $foo += $bar; echo $foo; ? Expected result: _123 Actual result: -- nothing Checked with a debugger, $foo += $bar; makes $foo = null; -- Edit this bug report at http://bugs.php.net/?id=45353edit=1
#45352 [Opn-Asn]: Segmentation fault when executing bug41037.phpt on apache module
ID: 45352 Updated by: [EMAIL PROTECTED] Reported By: eyal at zend dot com -Status: Open +Status: Assigned Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 5.2.6 -Assigned To: +Assigned To: dmitry Previous Comments: [2008-06-25 11:19:22] eyal at zend dot com Description: I executed bug41037.phpt on apache module. The result I got is that first request passes successfully, but next requests causes segmentation fault. To reproduce place the script from reproduction code section in your htdocs and request it as follows: ab -n1000 -c10 [URL] Note that all zend extensions were not loaded at the time of the test Reproduce code: --- ?php function a() { echo hello; unregister_tick_function('a'); } declare (ticks=1); register_tick_function('a'); echo Done\n; ? Expected result: hello Warning\: unregister_tick_function\(\)\: Unable to delete tick function executed at the moment in .+? on line [0-9]+ Done hello Warning\: unregister_tick_function\(\)\: Unable to delete tick function executed at the moment in .+? on line [0-9]+ hello Warning\: unregister_tick_function\(\)\: Unable to delete tick function executed at the moment in .+? on line [0-9]+ Actual result: -- Segmentation fault BT: (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1216579920 (LWP 23236)] zend_llist_apply (l=0x0, func=0xb740a6f0 user_tick_function_call) at /php-5.2.6/Zend/zend_llist.c:192 192 for (element=l-head; element; element=element-next) { (gdb) bt #0 zend_llist_apply (l=0x0, func=0xb740a6f0 user_tick_function_call) at /php-5.2.6/Zend/zend_llist.c:192 #1 0xb7407f9c in run_user_tick_functions (tick_count=1) at /php-5.2.6/ext/standard/basic_functions.c:5364 #2 0xb747c068 in php_tick_iterator (data=0x83a3438, arg=0xbf8b77e0) at /php-5.2.6/main/php_ticks.c:64 #3 0xb74a42ec in zend_llist_apply_with_argument (l=0xb77a2444, func=0xb747c050 php_tick_iterator, arg=0xbf8b77e0) at /php-5.2.6/Zend/zend_llist.c:236 #4 0xb747c042 in php_run_ticks (count=1) at /php-5.2.6/main/php_ticks.c:71 #5 0xb74c98d5 in ZEND_TICKS_SPEC_CONST_HANDLER (execute_data=0xbf8b7850) at /php-5.2.6/Zend/zend_vm_execute.h:2377 #6 0xb74cae28 in execute (op_array=0x835ff88) at /php-5.2.6/Zend/zend_vm_execute.h:92 #7 0xb74ad404 in zend_execute_scripts (type=8, retval=value optimized out, file_count=3) at /php-5.2.6/Zend/zend.c:1134 #8 0xb746dc60 in php_execute_script (primary_file=0xbf8b9af8) at /php-5.2.6/main/main.c:2005 #9 0xb7528591 in php_handler (r=0x83a1478) at /php-5.2.6/sapi/apache2handler/sapi_apache2.c:629 #10 0x08079259 in ap_run_handler () #11 0x0807c5b7 in ap_invoke_handler () #12 0x08089998 in ap_process_request () #13 0x08086c9b in ?? () #14 0x083a1478 in ?? () #15 0x0004 in ?? () #16 0x083a1478 in ?? () #17 0x in ?? () -- Edit this bug report at http://bugs.php.net/?id=45352edit=1
#44551 [Opn]: php script don't send output/STDOUT to apache
ID: 44551 User updated by: laurent_baillif at hotmail dot com Reported By: laurent_baillif at hotmail dot com Status: Open Bug Type: Apache2 related Operating System: * PHP Version: 5.2.5 New Comment: Hi, I have found a solution for my issue! Always send your echo with a \n at the end of your script. We sould put that in the manuel because it is says no where. Another issue I have experience: If your script is running on a windows platform, never leave a magic cookies (from linux for instance) and never leave a blank line at the begining of your script. that will de-synchronise all your answer in STDOUT. Let me explain: request one = answer one: error in apache request two = answer two: request one in apache request three = answer three: request two in apache and so on... So if you are running on windows, always start your script with the php quote:?php and finish it with ? whithout any white space in the middle of the code (e.g like: ??php ) Regards Previous Comments: [2008-06-25 11:37:17] john dot walsh at mini-net dot co dot uk Hi, I had a similar problem - stdout not getting to apache, but worked from the command line. I tried switching to using echo (with carefully constructed strings), but that still didn't work. Then, just to be sure, I put an echo z at the start (top level) of my script. The 'z' came through, along will all the rest of my scripts output. I changed the echo z to echo - the script continued to work. So it seamed that stdout needed some kick-into-life usage, before it would work from my functions. So something to try. Note: I was outputting binary data, and I think the first character would have been value 0x0A. Yours, John. [2008-03-27 15:28:19] laurent_baillif at hotmail dot com Description: Hello, I have an issue with STDOUT/OUTPUT of PHP. Im about to use a PHP script for a RewriteMap directive inside APACHE. And I have identified that APACHE never receive the output from my PHP script and this after trying several way to send the output and also on several platform (winXP/apache2/PHP5 OPENSUSE/apache2/PHP5.2.5) Thanks for your feedback Regards, Reproduce code: --- I have this configuration in a virtual host of APACHE (Works fine if I put a Perl script instead of PHP) VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/mywork/web/partenaire ServerName mytest.mydomain.com DirectoryIndex index.php ErrorLog /home/mywork/log/apache/error.log LogLevel debug RewriteLog /home/mywork/log/apache/rewrite.log RewriteLogLevel 9 RewriteEngine on #RewriteLock /home/mywork/web/partenaire/test/rewrite.lock #RewriteMap rewritemap prg:/home/mywork/web/partenaire/test/rewritemap.perl RewriteMap rewritemap prg:/home/mywork/web/partenaire/test/rewritemap.php RewriteOptions Inherit RewriteRule ^/test/(.*)$ ${rewritemap:%{REQUEST_URI}} [L] Directory /home/mywork/web/partenaire Options FollowSymLinks AllowOverride all Order allow, deny Allow from all /Directory /VirtualHost I can confirm my PHP script is working fine from the console (read STDIN and write STDOUT) and when it is start with apache, he receive correctly the STDIN but never send back the STDOUT. I have tried several configurations in my script and APACHE never get the STDOUT and just hang or return a blank URL. My rewritemap.php script looks like this: #!/usr/bin/php ?php //Flag to verify the script is starting //$handle = fopen (home/stat.txt, 'a+'); //fwrite($handle, date(H).h.date(i).m.date(s).: start of the script\r\n); //fclose($handle); $stdin = fopen ('php://stdin', 'r'); $output = fopen('php://output', 'w'); ob_implicit_flush (true); // Use unbuffered output while ($line = fgets ($stdin)) { $line = trim($line); //Flag to verify the script is receinving STDIN //$handle = fopen (home/stat.txt, 'a+'); //fwrite($handle, date(H).h.date(i).m.date(s).: Just receive: $line \r\n); //fclose($handle); fwrite(STDOUT,mynewURL?.$line); //try this one and didnt work with apache fwrite($output,mynewURL?.$line); //try this with OUTPUT and didnt work with neither echo mynewURL?.$line//try this one also but only works with the console } ? Expected result: I can confirm my PHP script is working fine from the console (read STDIN and write STDOUT) and when it is start with apache, he receive correctly the STDIN but never send back the STDOUT. With the same configuration a perl script is working fine for apache. I have tried several configurations in my php script and APACHE never get the STDOUT and just hang or return a blank URL. Actual result: -- Blank url or apache hang.
#45352 [Asn-Csd]: Segmentation fault when executing bug41037.phpt on apache module
ID: 45352 Updated by: [EMAIL PROTECTED] Reported By: eyal at zend dot com -Status: Assigned +Status: Closed Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 5.2.6 Assigned To: dmitry 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: [2008-06-25 11:19:22] eyal at zend dot com Description: I executed bug41037.phpt on apache module. The result I got is that first request passes successfully, but next requests causes segmentation fault. To reproduce place the script from reproduction code section in your htdocs and request it as follows: ab -n1000 -c10 [URL] Note that all zend extensions were not loaded at the time of the test Reproduce code: --- ?php function a() { echo hello; unregister_tick_function('a'); } declare (ticks=1); register_tick_function('a'); echo Done\n; ? Expected result: hello Warning\: unregister_tick_function\(\)\: Unable to delete tick function executed at the moment in .+? on line [0-9]+ Done hello Warning\: unregister_tick_function\(\)\: Unable to delete tick function executed at the moment in .+? on line [0-9]+ hello Warning\: unregister_tick_function\(\)\: Unable to delete tick function executed at the moment in .+? on line [0-9]+ Actual result: -- Segmentation fault BT: (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1216579920 (LWP 23236)] zend_llist_apply (l=0x0, func=0xb740a6f0 user_tick_function_call) at /php-5.2.6/Zend/zend_llist.c:192 192 for (element=l-head; element; element=element-next) { (gdb) bt #0 zend_llist_apply (l=0x0, func=0xb740a6f0 user_tick_function_call) at /php-5.2.6/Zend/zend_llist.c:192 #1 0xb7407f9c in run_user_tick_functions (tick_count=1) at /php-5.2.6/ext/standard/basic_functions.c:5364 #2 0xb747c068 in php_tick_iterator (data=0x83a3438, arg=0xbf8b77e0) at /php-5.2.6/main/php_ticks.c:64 #3 0xb74a42ec in zend_llist_apply_with_argument (l=0xb77a2444, func=0xb747c050 php_tick_iterator, arg=0xbf8b77e0) at /php-5.2.6/Zend/zend_llist.c:236 #4 0xb747c042 in php_run_ticks (count=1) at /php-5.2.6/main/php_ticks.c:71 #5 0xb74c98d5 in ZEND_TICKS_SPEC_CONST_HANDLER (execute_data=0xbf8b7850) at /php-5.2.6/Zend/zend_vm_execute.h:2377 #6 0xb74cae28 in execute (op_array=0x835ff88) at /php-5.2.6/Zend/zend_vm_execute.h:92 #7 0xb74ad404 in zend_execute_scripts (type=8, retval=value optimized out, file_count=3) at /php-5.2.6/Zend/zend.c:1134 #8 0xb746dc60 in php_execute_script (primary_file=0xbf8b9af8) at /php-5.2.6/main/main.c:2005 #9 0xb7528591 in php_handler (r=0x83a1478) at /php-5.2.6/sapi/apache2handler/sapi_apache2.c:629 #10 0x08079259 in ap_run_handler () #11 0x0807c5b7 in ap_invoke_handler () #12 0x08089998 in ap_process_request () #13 0x08086c9b in ?? () #14 0x083a1478 in ?? () #15 0x0004 in ?? () #16 0x083a1478 in ?? () #17 0x in ?? () -- Edit this bug report at http://bugs.php.net/?id=45352edit=1
#45354 [NEW]: Referencing variable variables impossible
From: Sjon at react dot com Operating system: Linux PHP version: 5.2.6 PHP Bug Type: Scripting Engine problem Bug description: Referencing variable variables impossible Description: It seems to be impossible to create a reference to a variable variable, even though this is not documented anywhere as a known bug or limitation Reproduce code: --- $y_a=array(); $a='a'; $x = $y_{$a}; #DOES NOT WORK # $x = $y_a; #DOES WORK $x['c'] = 'd'; var_dump($y_a); Expected result: array(1) { [c]= string(1) d } Actual result: -- array(0) { } -- Edit bug report at http://bugs.php.net/?id=45354edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45354r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45354r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45354r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45354r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45354r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45354r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45354r=needscript Try newer version:http://bugs.php.net/fix.php?id=45354r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45354r=support Expected behavior:http://bugs.php.net/fix.php?id=45354r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45354r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45354r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45354r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45354r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45354r=dst IIS Stability:http://bugs.php.net/fix.php?id=45354r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45354r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45354r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45354r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45354r=mysqlcfg
#45102 [Com]: Corrupting dbf files
ID: 45102 Comment by: pg23193+php at sgh dot waw dot pl Reported By: Eugene dot Migalin at pcmp dot ru Status: Open Bug Type: dBase related Operating System: Linux (Fedora 8) PHP Version: 5.2.6 New Comment: Dbase file header gets corrupted like in #42261 Previous Comments: [2008-05-27 05:27:13] Eugene dot Migalin at pcmp dot ru Description: after putting data into a dbase file using function dbase_add_record() the dbase file gets corrupted. The bug has been located in php-5.2.6/ext/dbase/dbf_head.c at: 1. line 202: shoud be dbfield.dbf_flen[0] = 8; dbfield.dbf_flen[1] = 0; as is dbf-db_flen = 8; 2. line 205: shoud be dbfield.dbf_flen[0] = 1; dbfield.dbf_flen[1] = 0; as is dbf-db_flen = 1; Reproduce code: --- any code using dbase_add_record() with a dbase file containing Date or(and) Logical fields -- Edit this bug report at http://bugs.php.net/?id=45102edit=1
#45355 [NEW]: DomDocument::schemaValidateSource causes an access violation
From: bghome at gmail dot com Operating system: Windows XP SP2 PHP version: 5.2.6 PHP Bug Type: DOM XML related Bug description: DomDocument::schemaValidateSource causes an access violation Description: A specific error in the XML Schema (XSD) causes the DomDocument validator to crash. The error occurs in the php5ts.dll. Reproduce code: --- ?php $schema = XSD ?xml version=1.0 encoding=utf-8 ? xs:schema attributeFormDefault=unqualified elementFormDefault=qualified xmlns:xs=http://www.w3.org/2001/XMLSchema; xs:element default=NEM name=root xs:simpleType xs:restriction base=_valaszto xs:enumeration value=IGEN / xs:enumeration value=NEM / xs:whiteSpace value=preserve / /xs:restriction /xs:simpleType /xs:element xs:simpleType name=_valaszto xs:restriction base=xs:string xs:enumeration value=IGEN / xs:enumeration value=NEM / xs:whiteSpace value=collapse / /xs:restriction /xs:simpleType /xs:schema XSD; $xml = XML root /root XML; $dom = new DomDocument(); $dom-loadXML( $xml ); $dom-schemaValidateSource( $schema ); ? Expected result: Warning: DOMDocument::schemaValidateSource() [domdocument.schemavalidatesource]: Invalid Schema in C:\wwwroot\ingatlanok2_trunk\validator.php on line 32 Actual result: -- The httpd.exe crashes. -- Edit bug report at http://bugs.php.net/?id=45355edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45355r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45355r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45355r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45355r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45355r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45355r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45355r=needscript Try newer version:http://bugs.php.net/fix.php?id=45355r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45355r=support Expected behavior:http://bugs.php.net/fix.php?id=45355r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45355r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45355r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45355r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45355r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45355r=dst IIS Stability:http://bugs.php.net/fix.php?id=45355r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45355r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45355r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45355r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45355r=mysqlcfg
#45288 [Com]: set_include_path() functionality broken
ID: 45288 Comment by: chrisagallo at gmail dot com Reported By: php at isnoop dot net Status: Open Bug Type: Filesystem function related Operating System: Ubuntu 7.04 server PHP Version: 5.3CVS-2008-06-17 (snap) New Comment: I've seen the same issue on CentOS 4.6 # php -v PHP 5.2.5 (cli) (built: Jun 23 2008 21:35:31) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies Previous Comments: [2008-06-24 16:59:29] NiX0n at fragfest dot cx Using ini_set(include_path, $path) has equivalent results. [2008-06-17 01:00:14] php at isnoop dot net Description: In previous versions of PHP, set_include_path() would return the previously set path after setting the new path passed to it. In my tests, set_include_path() returns false and does not set the path as it should. This behavior is the same whether the path to be set exists or not. The data in the Expected Result field can be seen with 5.1.2 and 5.2.6. The Actual Result data has been replicated in the following snaps: 5.3-200804251630 5.3-200806162030 5.3-200806172030 Reproduce code: --- echo pregetting: .get_include_path().\n; echo setting: .set_include_path(/NEWPATH).\n; echo getting: .get_include_path(); Expected result: getting: /websites/example/htdocs:/websites/example/inc/ setting: /websites/example/htdocs:/websites/example/inc/ getting: /NEWPATH Actual result: -- getting: /websites/example/htdocs:/websites/example/inc/ setting: getting: /websites/example/htdocs:/websites/example/inc/ -- Edit this bug report at http://bugs.php.net/?id=45288edit=1
#38111 [Com]: PHP crashes IIS worker process and application pool
ID: 38111 Comment by: kevin dot webb at f2bc dot net Reported By: svendavidh at hotmail dot com Status: Feedback Bug Type: IIS related Operating System: Windows Server 2003 Std. Ed. R2 PHP Version: 5.1.4 Assigned To: pajoye New Comment: Here you go. Thread 0 - System ID 9988 Entry point w3wp!wmainCRTStartup Create time 6/24/2008 9:06:45 PM Time spent in user mode 0 Days 0:0:0.93 Time spent in kernel mode 0 Days 0:0:0.62 Function Arg 1 Arg 2 Arg 3 Source w3core!W3_SERVER::Terminate+164 01001418 010013e4 w3core!UlW3Start+280 0007 00263978 w3wp!wmain+22a 0007 00263978 00264560 w3wp!wmainCRTStartup+12f bffdb000 kernel32!BaseProcessStart+23 010018f8 78746341 W3CORE!W3_SERVER::TERMINATE+164In w3wp__PID__9860__Date__06_24_2008__Time_09_27_54PM__62__Second_Chance_Exception_C005.dmp the assembly instruction at w3core!W3_SERVER::Terminate+164 in c:\WINDOWS\system32\inetsrv\w3core.dll from Microsoft Corporation has caused an access violation exception (0xC005) when trying to read from memory location 0x608fc030 on thread 0 Module Information Image Name: c:\WINDOWS\system32\inetsrv\w3core.dll Symbol Type: PDB Base address: 0x5a39 Time Stamp: Sat Feb 17 06:01:40 2007 Checksum: 0x00064439 Comments: COM DLL: False Company Name: Microsoft Corporation ISAPIExtension: False File Description: IIS Web Server Core ISAPIFilter: False File Version: 6.0.3790.3959 (srv03_sp2_rtm.070216-1710) Managed DLL: False Internal Name: w3core.dll VB DLL: False Legal Copyright: © Microsoft Corporation. All rights reserved. Loaded Image Name: w3core.dll Legal Trademarks: Mapped Image Name: Original filename: w3core.dll Module name: w3core Private Build: Single Threaded: False Product Name: Internet Information Services Module Size: 352.00 KBytes Product Version: 6.0.3790.3959 Symbol File Name: c:\symcache\w3core.pdb\1BD3D6C6BC5C44D3B496F792D23444952\w3core.pdb Special Build: Previous Comments: [2008-06-25 06:54:37] [EMAIL PROTECTED] To generate a usable backtrace see: http://bugs.php.net/bugs-generating-backtrace-win32.php A script to reproduce it could help as well (even if many scripts may crash, at least one can help to fix one issue). I'm waiting some new test systems with IIS6 and 7 and server 2k3, 2k8 and Vista. That will help to reproduce some of the issues you get. [2008-06-25 03:31:25] administrator at newviewlandscape dot com Same problem running Windows 2003 Server SP2 and PHP 5.2.6. Is there a stable version of PHP for Windows 2003 Server SP2? I appears this bug exists though the entire 5.x version. [2008-06-25 03:15:19] kevin dot webb at f2bc dot net What's wrong with they backtrace that was provided in the [3 Mar 5:01pm UTC] oliver at webbworlds dot com post? [2008-06-19 08:43:48] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to Open. Thank you for helping us make PHP better. [2008-06-19 02:08:37] huyhk at yahoo dot com Same problem for me. PHP 5.1.6, Windows 2003 Standard Edition. I got Event ID 1009 in System Error log so often (10-15 minutes once). Running Debug Diagnotistic Tool, I got this message In w3wp__PID__7784__Date__06_18_2008__Time_10_18_24PM__844__First chance exception 0XC005.dmp an access violation exception (0xC005) occured on thread 35 when another module attempted to call the following unloaded module: php5ts.dll. 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/38111 -- Edit this bug report at http://bugs.php.net/?id=38111edit=1
#45356 [NEW]: � symbol stripped if first char in cell
From: al at txtlocal dot com Operating system: Linux PHP version: 5.2.6 PHP Bug Type: Filesystem function related Bug description: £ symbol stripped if first char in cell Description: If you have csv file: name,price James,£150 fgetcsv() will remove the £. All other chars seem to be fine. I have searched forums for an answer to this and there are a few people reporting the same - but no definitive answer. -- Edit bug report at http://bugs.php.net/?id=45356edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45356r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45356r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45356r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45356r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45356r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45356r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45356r=needscript Try newer version:http://bugs.php.net/fix.php?id=45356r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45356r=support Expected behavior:http://bugs.php.net/fix.php?id=45356r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45356r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45356r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45356r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45356r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45356r=dst IIS Stability:http://bugs.php.net/fix.php?id=45356r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45356r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45356r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45356r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45356r=mysqlcfg
#45356 [Com]: � symbol stripped if first char in cell
ID: 45356 Comment by: al at txtlocal dot com Reported By: al at txtlocal dot com Status: Open Bug Type: Filesystem function related Operating System: Linux PHP Version: 5.2.6 New Comment: In addition - this is only if the £ character in the first char in a cell. This would work fine: name,price James,1£50 Previous Comments: [2008-06-25 17:45:30] al at txtlocal dot com Description: If you have csv file: name,price James,£150 fgetcsv() will remove the £. All other chars seem to be fine. I have searched forums for an answer to this and there are a few people reporting the same - but no definitive answer. -- Edit this bug report at http://bugs.php.net/?id=45356edit=1
#38111 [Com]: PHP crashes IIS worker process and application pool
ID: 38111 Comment by: kevin dot webb at f2bc dot net Reported By: svendavidh at hotmail dot com Status: Feedback Bug Type: IIS related Operating System: Windows Server 2003 Std. Ed. R2 PHP Version: 5.1.4 Assigned To: pajoye New Comment: Since it's an ISAPI istall of PHP there is no php.exe process to tag. This is a crash dump will all IIS related process flaged and using the PHP debug. Thread 0 - System ID 6548 Entry point w3wp!wmainCRTStartup Create time 6/25/2008 9:58:56 AM Time spent in user mode 0 Days 0:0:0.78 Time spent in kernel mode 0 Days 0:0:0.62 Function Arg 1 Arg 2 Arg 3 Source w3core!W3_SERVER::Terminate+164 01001418 010013e4 w3core!UlW3Start+280 0007 00263978 w3wp!wmain+22a 0007 00263978 00264560 w3wp!wmainCRTStartup+12f bffdb000 kernel32!BaseProcessStart+23 010018f8 78746341 W3CORE!W3_SERVER::TERMINATE+164In w3wp__PID__2044__Date__06_25_2008__Time_10_26_06AM__734__Second_Chance_Exception_C005.dmp the assembly instruction at w3core!W3_SERVER::Terminate+164 in c:\WINDOWS\system32\inetsrv\w3core.dll from Microsoft Corporation has caused an access violation exception (0xC005) when trying to read from memory location 0x608fc030 on thread 0 Module Information Image Name: c:\WINDOWS\system32\inetsrv\w3core.dll Symbol Type: PDB Base address: 0x5a39 Time Stamp: Sat Feb 17 06:01:40 2007 Checksum: 0x00064439 Comments: COM DLL: False Company Name: Microsoft Corporation ISAPIExtension: False File Description: IIS Web Server Core ISAPIFilter: False File Version: 6.0.3790.3959 (srv03_sp2_rtm.070216-1710) Managed DLL: False Internal Name: w3core.dll VB DLL: False Legal Copyright: © Microsoft Corporation. All rights reserved. Loaded Image Name: w3core.dll Legal Trademarks: Mapped Image Name: Original filename: w3core.dll Module name: w3core Private Build: Single Threaded: False Product Name: Internet Information Services Module Size: 352.00 KBytes Product Version: 6.0.3790.3959 Symbol File Name: c:\symcache\w3core.pdb\1BD3D6C6BC5C44D3B496F792D23444952\w3core.pdb Special Build: Previous Comments: [2008-06-25 16:33:14] kevin dot webb at f2bc dot net Here you go. Thread 0 - System ID 9988 Entry point w3wp!wmainCRTStartup Create time 6/24/2008 9:06:45 PM Time spent in user mode 0 Days 0:0:0.93 Time spent in kernel mode 0 Days 0:0:0.62 Function Arg 1 Arg 2 Arg 3 Source w3core!W3_SERVER::Terminate+164 01001418 010013e4 w3core!UlW3Start+280 0007 00263978 w3wp!wmain+22a 0007 00263978 00264560 w3wp!wmainCRTStartup+12f bffdb000 kernel32!BaseProcessStart+23 010018f8 78746341 W3CORE!W3_SERVER::TERMINATE+164In w3wp__PID__9860__Date__06_24_2008__Time_09_27_54PM__62__Second_Chance_Exception_C005.dmp the assembly instruction at w3core!W3_SERVER::Terminate+164 in c:\WINDOWS\system32\inetsrv\w3core.dll from Microsoft Corporation has caused an access violation exception (0xC005) when trying to read from memory location 0x608fc030 on thread 0 Module Information Image Name: c:\WINDOWS\system32\inetsrv\w3core.dll Symbol Type: PDB Base address: 0x5a39 Time Stamp: Sat Feb 17 06:01:40 2007 Checksum: 0x00064439 Comments: COM DLL: False Company Name: Microsoft Corporation ISAPIExtension: False File Description: IIS Web Server Core ISAPIFilter: False File Version: 6.0.3790.3959 (srv03_sp2_rtm.070216-1710) Managed DLL: False Internal Name: w3core.dll VB DLL: False Legal Copyright: © Microsoft Corporation. All rights reserved. Loaded Image Name: w3core.dll Legal Trademarks: Mapped Image Name: Original filename: w3core.dll Module name: w3core Private Build: Single Threaded: False Product Name: Internet Information Services Module Size: 352.00 KBytes Product Version: 6.0.3790.3959 Symbol File Name: c:\symcache\w3core.pdb\1BD3D6C6BC5C44D3B496F792D23444952\w3core.pdb Special Build: [2008-06-25 06:54:37] [EMAIL PROTECTED] To generate a usable backtrace see: http://bugs.php.net/bugs-generating-backtrace-win32.php A script to reproduce it could help as well (even if many scripts may crash, at least one can help to fix one issue). I'm waiting some new test systems with IIS6 and 7 and server 2k3, 2k8 and Vista. That will help to reproduce some of the issues you get. [2008-06-25 03:31:25] administrator at newviewlandscape dot com Same problem running Windows
#45356 [Opn]: fgetcsv() � symbol stripped if first char in cell
ID: 45356 User updated by: al at txtlocal dot com -Summary: £ symbol stripped if first char in cell Reported By: al at txtlocal dot com Status: Open Bug Type: Filesystem function related Operating System: Linux PHP Version: 5.2.6 New Comment: If you have csv file: name,price James,£150 fgetcsv() will remove the £. All other chars seem to be fine. I have searched forums for an answer to this and there are a few people reporting the same - but no definitive answer. In addition - this is only if the £ character in the first char in a cell. This would work fine: name,price James,1£50 Previous Comments: [2008-06-25 17:46:40] al at txtlocal dot com In addition - this is only if the £ character in the first char in a cell. This would work fine: name,price James,1£50 [2008-06-25 17:45:30] al at txtlocal dot com Description: If you have csv file: name,price James,£150 fgetcsv() will remove the £. All other chars seem to be fine. I have searched forums for an answer to this and there are a few people reporting the same - but no definitive answer. -- Edit this bug report at http://bugs.php.net/?id=45356edit=1
#45305 [Com]: From Header Not Parsed Correctly
ID: 45305 Comment by: php at info-svc dot com Reported By: php at info-svc dot com Status: Open Bug Type: Mail related Operating System: Windows Server 2003 SP2 PHP Version: 5.2.6 New Comment: Related research: #28038 #32600 #33507 #37073 #43730 #45249 Previous Comments: [2008-06-19 02:38:17] php at info-svc dot com sendmail.c @ 265 /* Real offset is memaddress from the original headers + difference of * string found in the lowercase headrs + 5 characters to jump over * the from: */ pos1 = headers + (pos1 - headers_lc) + 5; if (NULL == (pos2 = strstr(pos1, \r\n))) { RPath = estrndup(pos1, strlen(pos1)); This assumes there is always a valid addr-spec sandwiched between \nFrom: and \r\n inside the additional_headers value. But in RFC 2822 the From header is defined as mailbox-list. So, the RPath assignment in sendmail.c needs to detect both name-addr and addr-spec formats in the From header. [2008-06-19 01:50:05] php at info-svc dot com I found the advanced logging options :) Here is an excerpt: #Fields: time c-ip cs-method cs-uri-query 01:44:24 192.168.4.8 MAIL +FROM:[EMAIL PROTECTED] 01:44:24 192.168.4.8 RCPT +TO:[EMAIL PROTECTED] 01:44:24 192.168.4.8 MAIL +FROM:Robert+Chapin+[EMAIL PROTECTED] 01:44:24 192.168.4.8 MAIL +FROM: 01:44:24 192.168.4.8 RCPT +TO:[EMAIL PROTECTED] 01:44:24 192.168.4.8 MAIL +FROM: 01:44:24 192.168.4.8 RCPT +TO:[EMAIL PROTECTED] [2008-06-19 01:03:56] php at info-svc dot com Notice the SMTP error can never be reproduced if the following statement comes before mail() ini_set('sendmail_from', ini_get('sendmail_from')); This is a good workaround until the bug is fixed. [2008-06-19 00:42:39] php at info-svc dot com Description: PHP fails to parse the From: header in mail()'s additional_headers parameter when all of the following conditions exist: * Header is in the form of From: Name address * Script does not call ini_set('sendmail_from') * php.ini does not configure sendmail_from As the test server is using the localhost smtp service I can't see the smtp session using Network Monitor. The error returned by PHP is shown below. If there is a way for me to show you the bad MAIL TO command just let me know how. Reproduce code: --- ini_set('display_errors', TRUE); echo 'Sending message 1br /'; mail('[EMAIL PROTECTED]', 'Test Message1', 'Does the From header work at all?', 'From: [EMAIL PROTECTED]'); echo 'Sending message 2br /'; mail('[EMAIL PROTECTED]', 'Test Message2', 'Does the From header work at all?', 'From: Robert Chapin [EMAIL PROTECTED]'); ini_set('sendmail_from', NULL); echo 'Sending message 3br /'; mail('[EMAIL PROTECTED]', 'Test Message3', 'Does the From header work at all?', 'From: [EMAIL PROTECTED]'); echo 'Sending message 4br /'; mail('[EMAIL PROTECTED]', 'Test Message4', 'Does the From header work at all?', 'From: Robert Chapin [EMAIL PROTECTED]'); Expected result: Sending message 1 Sending message 2 Sending message 3 Sending message 4 Actual result: -- Sending message 1 Sending message 2 Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in test.php on line 5 Sending message 3 Sending message 4 -- Edit this bug report at http://bugs.php.net/?id=45305edit=1
#45357 [NEW]: sybase-ct fails against sybase-15_0 on 64-bit centos 5
From: temmel at jcvi dot org Operating system: Centos 5 x86_64 PHP version: 5.2.6 PHP Bug Type: Sybase-ct (ctlib) related Bug description: sybase-ct fails against sybase-15_0 on 64-bit centos 5 Description: I'm running into problems with php + sybase_ct under 64-bit Centos. I get a sybase_select_db failure after successfully performing a sybase_connect. CentOS release 5 (Final) Linux speedy 2.6.18-53.1.4.el5 #1 SMP Wed Nov 14 10:37:27 EST 2007 x86_64 x86_64 x86_64 GNU/Linux SYBASE=/usr/local/packages/sybase SYBASE_OCS=OCS-15_0 Using php-5.2-dev snap (php5.2-200806251230)... Modified configure to use 64-bit libs: LIBS=-lintl64 $LIBS SYBASE_CT_SHARED_LIBADD=-lct64 $SYBASE_CT_SHARED_LIBADD SYBASE_CT_LIBS=-L$SYBASE_CT_LIBDIR -lct64 SYBASE_CT_SHARED_LIBADD=-lcs64 $SYBASE_CT_SHARED_LIBADD LIBS=-lcs64 $LIBS SYBASE_CT_SHARED_LIBADD=-lct64 $SYBASE_CT_SHARED_LIBADD LIBS=-lct64 $LIBS SYBASE_CT_SHARED_LIBADD=-lcomn64 $SYBASE_CT_SHARED_LIBADD LIBS=-lcomn64 $LIBS SYBASE_CT_SHARED_LIBADD=-lintl64 $SYBASE_CT_SHARED_LIBADD LIBS=-lintl64 $LIBS SYBASE_CT_LIBS=-L$SYBASE_CT_LIBDIR -lcs64 -lct64 -lcomn64 -lintl64 SYBASE_CT_SHARED_LIBADD=-ltcl64 $SYBASE_CT_SHARED_LIBADD SYBASE_CT_SHARED_LIBADD=-lsybtcl64 $SYBASE_CT_SHARED_LIBADD LIBS=-lsybtcl64 $LIBS SYBASE_CT_SHARED_LIBADD=-linsck64 $SYBASE_CT_SHARED_LIBADD SYBASE_CT_SHARED_LIBADD=-linsck64 $SYBASE_CT_SHARED_LIBADD ./configure --prefix=/opt/software/php-dev --with-sybase-ct=/usr/local/packages/sybase FAILED TEST SUMMARY - Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt] iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt] Test array_slice() function : usage variations - Pass different data types as $offset arg [ext/standard/tests/array/array_slice_variation2.phpt] Test array_slice() function : usage variations - Pass different data types as $length arg [ext/standard/tests/array/array_slice_variation3.phpt] Test lstat() and stat() functions: usage variations - effects of touch() on link [ext/standard/tests/file/lstat_stat_variation6.phpt] Test lstat() and stat() functions: usage variations - writing data into file [ext/standard/tests/file/lstat_stat_variation7.phpt] Test setlocale() function : usage variations - setting system locale as null [ext/standard/tests/strings/setlocale_variation4.phpt] Test setlocale() function : usage variations - Setting system locale as empty string [ext/standard/tests/strings/setlocale_variation5.phpt] Sybase-CT bug #22403 (crash when executing a stored procedure without parameters) [ext/sybase_ct/tests/bug22403.phpt] Sybase-CT bug #26407 (Result set fetching broken around transactions) [ext/sybase_ct/tests/bug26407.phpt] Sybase-CT bug #27843 (notices when query is a stored procedure) [ext/sybase_ct/tests/bug27843.phpt] Sybase-CT bug #28354 (sybase_free_result crash) [ext/sybase_ct/tests/bug28354.phpt] Sybase-CT bug #29064 (Exact numeric/decimal/money datatypes lose precision) [ext/sybase_ct/tests/bug29064.phpt] Sybase-CT bug #30312 (sybase_unbuffered_query calls) [ext/sybase_ct/tests/bug30312.phpt] Sybase-CT bug #6339 (invalid Sybase-link resource) [ext/sybase_ct/tests/bug6339.phpt] Sybase-CT application name [ext/sybase_ct/tests/test_appname.phpt] Sybase-CT connectivity [ext/sybase_ct/tests/test_connect.phpt] Sybase-CT connection-based server message handler [ext/sybase_ct/tests/test_connectionbased_msghandler.phpt] Sybase-CT sybase_fetch_object [ext/sybase_ct/tests/test_fetch_object.phpt] Sybase-CT sybase_field_* functions [ext/sybase_ct/tests/test_fields.phpt] Sybase-CT select LONG_MAX / LONG_MIN [ext/sybase_ct/tests/test_long.phpt] Sybase-CT server message handler [ext/sybase_ct/tests/test_msghandler.phpt] Sybase-CT server message handler [ext/sybase_ct/tests/test_msghandler_handled.phpt] Sybase-CT query without storing [ext/sybase_ct/tests/test_query_nostore.phpt] Sybase-CT select and types [ext/sybase_ct/tests/test_types.phpt] Sybase-CT unbuffered query [ext/sybase_ct/tests/test_unbuffered_query.phpt] Test script: ?php $con = sybase_connect(SYBIL, access, access) or die (sybase_connect failure\n); sybase_select_db(pfgrc_dev4) or die (sybase_select_db failure\n); $qry = sybase_query(select * from z_logins, $con); echo sybase_result($qry, 1, 1); sybase_close($con); ? Script results: % /opt/software/php-dev/bin/php test.php sybase_select_db failure -- Edit bug report at http://bugs.php.net/?id=45357edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45357r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45357r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45357r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45357r=fixedcvs Fixed in release:
#45358 [NEW]: var_dump(strtotime('1214431948'));
From: viorel dot irimia at gmail dot com Operating system: Debian GNU/Linux 4.0 PHP version: 5.2.6 PHP Bug Type: Date/time related Bug description: var_dump(strtotime('1214431948')); Description: It seems that var_dump(strtotime('1214431948')); is returning int(-678980717) instead timestamp / false / -1 I belive is an overflow somewhere... Version: PHP Version 5.2.0-8+etch11 Build Date May 10 2008 10:31:53 Linux 2.6.18-6-686, debian 4.0 Reproduce code: --- var_dump(strtotime('1214431948')); var_dump(strtotime('1214431946')); Expected result: false | -1 false | -1 Actual result: -- int(-678980717) int(-742139117) -- Edit bug report at http://bugs.php.net/?id=45358edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45358r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45358r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45358r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45358r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45358r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45358r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45358r=needscript Try newer version:http://bugs.php.net/fix.php?id=45358r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45358r=support Expected behavior:http://bugs.php.net/fix.php?id=45358r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45358r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45358r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45358r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45358r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45358r=dst IIS Stability:http://bugs.php.net/fix.php?id=45358r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45358r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45358r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45358r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45358r=mysqlcfg
#45359 [NEW]: strtotime: negative timestamps var_dump(strtotime('1214431948'));
From: ovidiu dot leferman at gmail dot com Operating system: Vista Ultimate 32B Sp1 PHP version: 5.2.6 PHP Bug Type: Date/time related Bug description: strtotime: negative timestamps var_dump(strtotime('1214431948')); Description: var_dump(strtotime('1214431944')); returning int(-805297517) Reproduce code: --- var_dump(strtotime('1214431944')); Expected result: false / -1 Actual result: -- int(-805297517) -- Edit bug report at http://bugs.php.net/?id=45359edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45359r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45359r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45359r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45359r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45359r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45359r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45359r=needscript Try newer version:http://bugs.php.net/fix.php?id=45359r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45359r=support Expected behavior:http://bugs.php.net/fix.php?id=45359r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45359r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45359r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45359r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45359r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45359r=dst IIS Stability:http://bugs.php.net/fix.php?id=45359r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45359r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45359r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45359r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45359r=mysqlcfg
#45360 [NEW]: Variable copies corrupted by memcache problem
From: richc at drivecurrent dot com Operating system: Linux Redhat PHP version: 5.2.6 PHP Bug Type: Variables related Bug description: Variable copies corrupted by memcache problem Description: I believe a problem with memcache reveals a problem with PHP. (PECL Memcache bug: http://pecl.php.net/bugs/bug.php?id=14239) A call to memcache changes the parameter variable to 'string' type. The PHP problem is that this conversion is passed to ancestor and decendent copies of the variable, even through function calls, even though passed by value, not reference. This appears to be similar to PHP Bug #42813, closed as Bogus. This is a newly compiled PHP installation using latest PHP, PECL, memcached. Reproduce code: --- $value1 = 1.2; $value2 = $value1; // this value is being passed -- all get modified $value3 = $value2; echo 'br1 ' . gettype($value1) . ' / ' . gettype($value2) . ' / ' . gettype($value3); set('asdf', $value2); echo 'br4 ' . gettype($value1) . ' / ' . gettype($value2) . ' / ' . gettype($value3); function set( $key, $valueA ) { $valueB = $valueA; // this value is being passed -- all get modified $valueC = $valueB; echo 'br2 ' . gettype($valueA) . ' / ' . gettype($valueB) . ' / ' . gettype($valueC); $m = new Memcache(); $m-addServer('localhost'); $m-set($key, $valueB); echo 'br3 ' . gettype($valueA) . ' / ' . gettype($valueB) . ' / ' . gettype($valueC); } Expected result: Even when memcache bug corrupts $valueB, others should not be affected: 1 double / double / double 2 double / double / double 3 double / string / double 4 double / string / double Actual result: -- 1 double / double / double 2 double / double / double 3 string / string / string 4 string / string / string -- Edit bug report at http://bugs.php.net/?id=45360edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45360r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45360r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45360r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45360r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45360r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45360r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45360r=needscript Try newer version:http://bugs.php.net/fix.php?id=45360r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45360r=support Expected behavior:http://bugs.php.net/fix.php?id=45360r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45360r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45360r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45360r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45360r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45360r=dst IIS Stability:http://bugs.php.net/fix.php?id=45360r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45360r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45360r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45360r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45360r=mysqlcfg
#45358 [Com]: var_dump(strtotime('1214431948'));
ID: 45358 Comment by: smlerman at gmail dot com Reported By: viorel dot irimia at gmail dot com Status: Open Bug Type: Date/time related Operating System: Debian GNU/Linux 4.0 PHP Version: 5.2.6 New Comment: '1214431948' is being understood as 'HHiiss' var_dump(date('Y-m-d H:i:s', strtotime('1214431947'))); will show you what's happening. Previous Comments: [2008-06-25 19:50:44] viorel dot irimia at gmail dot com Description: It seems that var_dump(strtotime('1214431948')); is returning int(-678980717) instead timestamp / false / -1 I belive is an overflow somewhere... Version: PHP Version 5.2.0-8+etch11 Build Date May 10 2008 10:31:53 Linux 2.6.18-6-686, debian 4.0 Reproduce code: --- var_dump(strtotime('1214431948')); var_dump(strtotime('1214431946')); Expected result: false | -1 false | -1 Actual result: -- int(-678980717) int(-742139117) -- Edit this bug report at http://bugs.php.net/?id=45358edit=1
#45360 [Opn]: Variable copies corrupted by memcache problem
ID: 45360 User updated by: richc at drivecurrent dot com Reported By: richc at drivecurrent dot com Status: Open Bug Type: Variables related Operating System: Linux Redhat PHP Version: 5.2.6 New Comment: The last Expected Result should read 4 double / double / double Previous Comments: [2008-06-25 20:24:42] richc at drivecurrent dot com Description: I believe a problem with memcache reveals a problem with PHP. (PECL Memcache bug: http://pecl.php.net/bugs/bug.php?id=14239) A call to memcache changes the parameter variable to 'string' type. The PHP problem is that this conversion is passed to ancestor and decendent copies of the variable, even through function calls, even though passed by value, not reference. This appears to be similar to PHP Bug #42813, closed as Bogus. This is a newly compiled PHP installation using latest PHP, PECL, memcached. Reproduce code: --- $value1 = 1.2; $value2 = $value1; // this value is being passed -- all get modified $value3 = $value2; echo 'br1 ' . gettype($value1) . ' / ' . gettype($value2) . ' / ' . gettype($value3); set('asdf', $value2); echo 'br4 ' . gettype($value1) . ' / ' . gettype($value2) . ' / ' . gettype($value3); function set( $key, $valueA ) { $valueB = $valueA; // this value is being passed -- all get modified $valueC = $valueB; echo 'br2 ' . gettype($valueA) . ' / ' . gettype($valueB) . ' / ' . gettype($valueC); $m = new Memcache(); $m-addServer('localhost'); $m-set($key, $valueB); echo 'br3 ' . gettype($valueA) . ' / ' . gettype($valueB) . ' / ' . gettype($valueC); } Expected result: Even when memcache bug corrupts $valueB, others should not be affected: 1 double / double / double 2 double / double / double 3 double / string / double 4 double / string / double Actual result: -- 1 double / double / double 2 double / double / double 3 string / string / string 4 string / string / string -- Edit this bug report at http://bugs.php.net/?id=45360edit=1
#45358 [Opn]: var_dump(strtotime('1214431948'));
ID: 45358 User updated by: viorel dot irimia at gmail dot com Reported By: viorel dot irimia at gmail dot com Status: Open Bug Type: Date/time related Operating System: Debian GNU/Linux 4.0 PHP Version: 5.2.6 New Comment: This is not suppose to happen. From PHP manual: Return Values: Returns a timestamp on success, FALSE otherwise. Previous to PHP 5.1.0, this function would return -1 on failure. A timestamp is an unsigned integer. Of course in PHP there is no such thing. I still belive is an integer overflow. Previous Comments: [2008-06-25 20:28:37] smlerman at gmail dot com '1214431948' is being understood as 'HHiiss' var_dump(date('Y-m-d H:i:s', strtotime('1214431947'))); will show you what's happening. [2008-06-25 19:50:44] viorel dot irimia at gmail dot com Description: It seems that var_dump(strtotime('1214431948')); is returning int(-678980717) instead timestamp / false / -1 I belive is an overflow somewhere... Version: PHP Version 5.2.0-8+etch11 Build Date May 10 2008 10:31:53 Linux 2.6.18-6-686, debian 4.0 Reproduce code: --- var_dump(strtotime('1214431948')); var_dump(strtotime('1214431946')); Expected result: false | -1 false | -1 Actual result: -- int(-678980717) int(-742139117) -- Edit this bug report at http://bugs.php.net/?id=45358edit=1
#45359 [Opn-Bgs]: strtotime: negative timestamps var_dump(strtotime('1214431948'));
ID: 45359 Updated by: [EMAIL PROTECTED] Reported By: ovidiu dot leferman at gmail dot com -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Vista Ultimate 32B Sp1 PHP Version: 5.2.6 New Comment: THis is not a bug, it simply parses this as 12:13:43 1948): [EMAIL PROTECTED]:~$ php -r 'var_dump(date_parse(1214431944));' array(12) { [year]= int(1944) [month]= bool(false) [day]= bool(false) [hour]= int(12) [minute]= int(14) [second]= int(43) [fraction]= float(0) [warning_count]= int(0) [warnings]= array(0) { } [error_count]= int(0) [errors]= array(0) { } [is_localtime]= bool(false) } Previous Comments: [2008-06-25 20:03:19] ovidiu dot leferman at gmail dot com Description: var_dump(strtotime('1214431944')); returning int(-805297517) Reproduce code: --- var_dump(strtotime('1214431944')); Expected result: false / -1 Actual result: -- int(-805297517) -- Edit this bug report at http://bugs.php.net/?id=45359edit=1
#45358 [Opn-Bgs]: var_dump(strtotime('1214431948'));
ID: 45358 Updated by: [EMAIL PROTECTED] Reported By: viorel dot irimia at gmail dot com -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Debian GNU/Linux 4.0 PHP Version: 5.2.6 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Duplicate of #45359 Previous Comments: [2008-06-25 20:46:35] viorel dot irimia at gmail dot com This is not suppose to happen. From PHP manual: Return Values: Returns a timestamp on success, FALSE otherwise. Previous to PHP 5.1.0, this function would return -1 on failure. A timestamp is an unsigned integer. Of course in PHP there is no such thing. I still belive is an integer overflow. [2008-06-25 20:28:37] smlerman at gmail dot com '1214431948' is being understood as 'HHiiss' var_dump(date('Y-m-d H:i:s', strtotime('1214431947'))); will show you what's happening. [2008-06-25 19:50:44] viorel dot irimia at gmail dot com Description: It seems that var_dump(strtotime('1214431948')); is returning int(-678980717) instead timestamp / false / -1 I belive is an overflow somewhere... Version: PHP Version 5.2.0-8+etch11 Build Date May 10 2008 10:31:53 Linux 2.6.18-6-686, debian 4.0 Reproduce code: --- var_dump(strtotime('1214431948')); var_dump(strtotime('1214431946')); Expected result: false | -1 false | -1 Actual result: -- int(-678980717) int(-742139117) -- Edit this bug report at http://bugs.php.net/?id=45358edit=1
#45361 [NEW]: IE / IIS Double form post in case of redirection
From: ssruprai at hotmail dot com Operating system: Windows 2003, XP PHP version: 5.2.6 PHP Bug Type: IIS related Bug description: IE / IIS Double form post in case of redirection Description: I am facing a strange problem of IE double posting in case of self post. PHP 5.2.6 / IIS 5.1 on windows XP. Before starting I must tell you that: It works with firefox, Apache / PHP combination. It works with IE / Apache / PHP combination It works with firefox / IIS / PHP Combination But it DOES NOT work with IE/PHP/ IIS This seems to be the case case with all IE versions (specially IE 6) and it happens on even the windows 2003 server. I have a form with just one field which uploads a single file and posts back to same PHP file. The file is a csv file and it is properly read and inserted into database. After it is successfully inserted I issue a redirect to some other page using header(Location:other_page.php). When the header is executed the form is posted again. I know that it was posted twice because when I see the database the records are inserted twice. I am not sure if it is IIS, PHP or IE Problem. This is not the first time I have experienced this. I had earlier faced the similar double post problem in case of self post (WITHOUT USING REDIRECT header but this seems to have been resolved with latest php ISAPI version. At that time I just switched to apache as most hosting servers were linux and there was no problem). But now the problem is that production server is Windows 2003 server with IIS. (The version of PHP IIS or windows shouldn't not matter though) My application is using all sorts of libraries, from pear db, quickform to smarty so I have just created a simple upload form . Which does nothing but logs the access to find out about double post. I had tried many different php versions and all produced same result. I have created a simple form for testing. If you'll upload a small text file you'll see that there are two entries in log file for one access. The platform to test is IIS (ISAPI) php 5 and Internet explorer 6. (IE 7 may not post values twice but it will display some page not found error.) Reproduce code: --- ?php set_time_limit ( 300); if (@$_POST['submitted'] == 'yes') { $csv_file = $_FILES['csv_file']; if ($csv_file['size'] 0) { $fp = fopen('access.txt', 'a'); fwrite($fp, 'Accessed at '. date('d-m-y H:i:s u'). \r\n); fclose($fp); header('Location:http://www.google.com'); exit; /* if instead of above header, javascript redirect is used then it is not posted twice */ /*echo script language='javascript'\n; echo location.replace('http://www.google.com');\n; echo /script;*/ } else if ($csv_file['error'] == UPLOAD_ERR_FORM_SIZE || $csv_file['error'] == UPLOAD_ERR_INI_SIZE) { $error = File size exceeds max allowed size of whatever; } else { $error = There was error in uploading your file.; } } ? html head title test /title /head body ?php if (isset($error)) { echo B$error/B; } ? form method=post enctype=multipart/form-data input name=MAX_FILE_SIZE type=hidden value=5242880 / input type=file name=csv_file / input type=hidden name=submitted value=yes / input type=submit value=Submit / /form /body /html -- Edit bug report at http://bugs.php.net/?id=45361edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45361r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45361r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45361r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45361r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45361r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45361r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45361r=needscript Try newer version:http://bugs.php.net/fix.php?id=45361r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45361r=support Expected behavior:http://bugs.php.net/fix.php?id=45361r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45361r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45361r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45361r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45361r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45361r=dst IIS Stability:
#42893 [Com]: segfault on ia64 when working w/ constants
ID: 42893 Comment by: ryan dot oliver at dse dot vic dot gov dot au Reported By: hoffie at gentoo dot org Status: Open Bug Type: Reproducible crash Operating System: Linux on ia64 PHP Version: 5.2.5 New Comment: Same issue here with php-5.2.6 on ia64 (SGI Prism w SLES 9 SP3) using gcc-4.2.4 + binutils-2.18.0. As soon as debugging symbols are enabled (CFLAGS=-g or ./configure --enable-debug) the problem disappears ... Issue appears from my rudimentary tests to be due to compiler optimizations, debug symbols have no bearing on the issue Compiled with CFLAGS=-O0 CXXFLAGS=-O0 no segfault occurs. Compiled with CFLAGS=-O1 CXXFLAGS=-O1 no segfault occurs. So whatever the issue is, it is exposed by one/some of the 27 -O2 gcc optimizations. Previous Comments: [2007-11-17 09:07:52] hoffie at gentoo dot org I've only tried Gentoo and Debian so far, but I think this should be sufficient. If it fails on two distros and previous versions of php worked (and still work) then it's likely that it is a bug which got introduced with php-5.2, isn't it? If you still want me to try it on another distro, please point me to some resource to easily install one (like Debians debootstrap). [2007-11-17 01:56:02] [EMAIL PROTECTED] Can you reproduce this with any linux distro on that machine? [2007-11-12 19:26:18] hoffie at gentoo dot org Still reproducable with gcc-4.2.2 and php-5.2.5 (final). [2007-11-12 17:52:24] hoffie at gentoo dot org We are not using gcc-3.x, but gcc-4.1(.2). Anyway, I've tried with 4.2.0 (as it was already installed) and it fails for the same reasons. I'm going to try 4.2.2, I can probably give you results later. [2007-11-12 10:32:57] [EMAIL PROTECTED] This looks like a broken binary, I've seen similar problems on SPARC with GCC 3.x unable to generate working PHP executable. Try newer/other GCC version. 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/42893 -- Edit this bug report at http://bugs.php.net/?id=42893edit=1
#45362 [NEW]: High! Direct access to Apache folder
From: david71rj at gmail dot com Operating system: Windows Vista SP1 PHP version: 5.2.6 PHP Bug Type: Directory function related Bug description: High! Direct access to Apache folder Description: - See Reproduce code - Reproduce code: --- class Name { function __descruct() { $this-Save(); } function Save() { echo realpath(./); } } echo realpath(./).\n; $test = new Name(); Expected result: C:/project/test C:/wampserver/bin/apache/apache2.2.8 -- (o.O) Actual result: -- C:/project/test C:/project/test -- Edit bug report at http://bugs.php.net/?id=45362edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45362r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45362r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45362r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45362r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45362r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45362r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45362r=needscript Try newer version:http://bugs.php.net/fix.php?id=45362r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45362r=support Expected behavior:http://bugs.php.net/fix.php?id=45362r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45362r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45362r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45362r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45362r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45362r=dst IIS Stability:http://bugs.php.net/fix.php?id=45362r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45362r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45362r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45362r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45362r=mysqlcfg
#45362 [Com]: High! Direct access to Apache folder
ID: 45362 Comment by: david71rj at gmaill dot com Reported By: david71rj at gmail dot com Status: Open Bug Type: Directory function related Operating System: Windows Vista SP1 PHP Version: 5.2.6 New Comment: Too works with: class Name { function __destruct() { echo realpath(./); } } Don't is needly call a function. Previous Comments: [2008-06-26 03:43:56] david71rj at gmail dot com Description: - See Reproduce code - Reproduce code: --- class Name { function __descruct() { $this-Save(); } function Save() { echo realpath(./); } } echo realpath(./).\n; $test = new Name(); Expected result: C:/project/test C:/wampserver/bin/apache/apache2.2.8 -- (o.O) Actual result: -- C:/project/test C:/project/test -- Edit this bug report at http://bugs.php.net/?id=45362edit=1
#45362 [Com]: High! Direct access to Apache folder
ID: 45362 Comment by: david71rj at gmail dot com Reported By: david71rj at gmail dot com Status: Open Bug Type: Directory function related Operating System: Windows Vista SP1 PHP Version: 5.2.6 New Comment: The bug occur only if you don't unset variable-class ($test). If use unset($test) work perfectly. But, I still feel a bug. It can be very serious. Previous Comments: [2008-06-26 03:48:31] david71rj at gmaill dot com Too works with: class Name { function __destruct() { echo realpath(./); } } Don't is needly call a function. [2008-06-26 03:43:56] david71rj at gmail dot com Description: - See Reproduce code - Reproduce code: --- class Name { function __descruct() { $this-Save(); } function Save() { echo realpath(./); } } echo realpath(./).\n; $test = new Name(); Expected result: C:/project/test C:/wampserver/bin/apache/apache2.2.8 -- (o.O) Actual result: -- C:/project/test C:/project/test -- Edit this bug report at http://bugs.php.net/?id=45362edit=1
#45362 [Opn-Csd]: High! Direct access to Apache folder
ID: 45362 User updated by: david71rj at gmail dot com Reported By: david71rj at gmail dot com -Status: Open +Status: Closed Bug Type: Directory function related Operating System: Windows Vista SP1 PHP Version: 5.2.6 New Comment: -Don't disponible to public- Previous Comments: [2008-06-26 03:54:19] david71rj at gmail dot com The bug occur only if you don't unset variable-class ($test). If use unset($test) work perfectly. But, I still feel a bug. It can be very serious. [2008-06-26 03:48:31] david71rj at gmaill dot com Too works with: class Name { function __destruct() { echo realpath(./); } } Don't is needly call a function. [2008-06-26 03:43:56] david71rj at gmail dot com Description: - See Reproduce code - Reproduce code: --- class Name { function __descruct() { $this-Save(); } function Save() { echo realpath(./); } } echo realpath(./).\n; $test = new Name(); Expected result: C:/project/test C:/wampserver/bin/apache/apache2.2.8 -- (o.O) Actual result: -- C:/project/test C:/project/test -- Edit this bug report at http://bugs.php.net/?id=45362edit=1
#45362 [Csd-Bgs]: Apache folder
ID: 45362 User updated by: david71rj at gmail dot com -Summary: High! Direct access to Apache folder Reported By: david71rj at gmail dot com -Status: Closed +Status: Bogus Bug Type: Directory function related Operating System: Windows Vista SP1 PHP Version: 5.2.6 New Comment: My fault. Bad configuration. Previous Comments: [2008-06-26 04:00:47] david71rj at gmail dot com -Don't disponible to public- [2008-06-26 03:54:19] david71rj at gmail dot com The bug occur only if you don't unset variable-class ($test). If use unset($test) work perfectly. But, I still feel a bug. It can be very serious. [2008-06-26 03:48:31] david71rj at gmaill dot com Too works with: class Name { function __destruct() { echo realpath(./); } } Don't is needly call a function. [2008-06-26 03:43:56] david71rj at gmail dot com Description: - See Reproduce code - Reproduce code: --- class Name { function __descruct() { $this-Save(); } function Save() { echo realpath(./); } } echo realpath(./).\n; $test = new Name(); Expected result: C:/project/test C:/wampserver/bin/apache/apache2.2.8 -- (o.O) Actual result: -- C:/project/test C:/project/test -- Edit this bug report at http://bugs.php.net/?id=45362edit=1