[PHP-DEV] Bug #14226 Updated: multiple ob_end_clean() problem
ID: 14226 Updated by: yohgaki Reported By: [EMAIL PROTECTED] Old Status: Open Status: Assigned Bug Type: Output Control Old Operating System: Linux 2.4.4/glibc 2.2.2 Operating System: any probably Old PHP Version: 4.1.0RC CVS (2001/12/2) PHP Version: 4.1.0 and 4.2.0-dev Old Assigned To: Assigned To: yohgaki New Comment: Assigned to myself. Previous Comments: [2001-12-02 17:19:13] [EMAIL PROTECTED] Ok I think I found what's wrong in PHP. If zlib.output_compression is enabled and the zlib output compression handler is deleted from php_ob_buffer, output will not be sent. I'll leave the real fix for people who knows about zlib output compression and output buffering. I just need to know nesting level to make my script work as I want. I'll send patch for the new function later. [2001-12-02 08:20:20] [EMAIL PROTECTED] A little update. ob_end_flush() has problem also. [2001-11-26 06:16:30] [EMAIL PROTECTED] I cannot reproduce segfualt, but it seems PHP may segfault with this. Here is apache error log. [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] [notice] child pid 6681 exit signal Segmentation fault (11) [2001-11-26 06:06:17] [EMAIL PROTECTED] 4.1.0RC and 4.2.0-dev doesn't output last echo statement. Nesting level handling problem? ?php ob_start(); echo AAA; ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); echo BBB; ? Edit this bug report at http://bugs.php.net/?id=14226edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14226 Updated: multiple ob_end_clean() problem
ID: 14226 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Output Control Old Operating System: Linux Operating System: Linux 2.4.4/glibc 2.2.2 Old PHP Version: 4.1.0RC1 PHP Version: 4.1.0RC CVS (2001/12/2) New Comment: A little update. ob_end_flush() has problem also. Previous Comments: [2001-11-26 06:16:30] [EMAIL PROTECTED] I cannot reproduce segfualt, but it seems PHP may segfault with this. Here is apache error log. [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] [notice] child pid 6681 exit signal Segmentation fault (11) [2001-11-26 06:06:17] [EMAIL PROTECTED] 4.1.0RC and 4.2.0-dev doesn't output last echo statement. Nesting level handling problem? ?php ob_start(); echo AAA; ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); echo BBB; ? Edit this bug report at http://bugs.php.net/?id=14226edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Bug #14226 Updated: multiple ob_end_clean() problem
I tested the CGI version (command line) and the first outptus: $ php -f 14226.php BBB$ $ php -v 4.2.0-dev (with usual enable debug, etc) so this does only apply to apache? can you test the CGI version too? - Markus On Sun, Dec 02, 2001 at 01:20:20PM -, [EMAIL PROTECTED] wrote : ID: 14226 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Output Control Old Operating System: Linux Operating System: Linux 2.4.4/glibc 2.2.2 Old PHP Version: 4.1.0RC1 PHP Version: 4.1.0RC CVS (2001/12/2) New Comment: A little update. ob_end_flush() has problem also. Previous Comments: [2001-11-26 06:16:30] [EMAIL PROTECTED] I cannot reproduce segfualt, but it seems PHP may segfault with this. Here is apache error log. [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] [notice] child pid 6681 exit signal Segmentation fault (11) [2001-11-26 06:06:17] [EMAIL PROTECTED] 4.1.0RC and 4.2.0-dev doesn't output last echo statement. Nesting level handling problem? ?php ob_start(); echo AAA; ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); echo BBB; ? Edit this bug report at http://bugs.php.net/?id=14226edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Please always Cc to me when replying to me on the lists. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Bug #14226 Updated: multiple ob_end_clean() problem
Markus Fischer wrote: I tested the CGI version (command line) and the first outptus: $ php -f 14226.php BBB$ $ php -v 4.2.0-dev (with usual enable debug, etc) so this does only apply to apache? can you test the CGI version too? - Markus It seems CGI version output is ok to me also. (4.2.0-dev 2001/11/15. I thought I've tested with CGI version when I reported this bug. It seems I'm not.) Today's HEAD 4.1.0RC with Aapche SAPI has problem, at least with my config. -- Yasuo Ohgaki On Sun, Dec 02, 2001 at 01:20:20PM -, [EMAIL PROTECTED] wrote : ID: 14226 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Output Control Old Operating System: Linux Operating System: Linux 2.4.4/glibc 2.2.2 Old PHP Version: 4.1.0RC1 PHP Version: 4.1.0RC CVS (2001/12/2) New Comment: A little update. ob_end_flush() has problem also. Previous Comments: [2001-11-26 06:16:30] [EMAIL PROTECTED] I cannot reproduce segfualt, but it seems PHP may segfault with this. Here is apache error log. [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] [notice] child pid 6681 exit signal Segmentation fault (11) [2001-11-26 06:06:17] [EMAIL PROTECTED] 4.1.0RC and 4.2.0-dev doesn't output last echo statement. Nesting level handling problem? ?php ob_start(); echo AAA; ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); echo BBB; ? Edit this bug report at http://bugs.php.net/?id=14226edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Bug #14226 Updated: multiple ob_end_clean() problem
Yasuo Ohgaki wrote: Markus Fischer wrote: I tested the CGI version (command line) and the first outptus: $ php -f 14226.php BBB$ $ php -v 4.2.0-dev (with usual enable debug, etc) so this does only apply to apache? can you test the CGI version too? - Markus Dear Markus, Are you going to fix this bug? If yes, I'll wait your patch :) Best Regards, -- Yasuo Ohgaki _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Bug #14226 Updated: multiple ob_end_clean() problem
Huh? Did I ever propsed to fix this? Sorry my knowledge on how the ob_*() stuff works is too limited and I don't have time to dig into that right now. I just offered time for testing and as we see it matters which SAPI is used ;) - Markus On Mon, Dec 03, 2001 at 06:31:32AM +0900, Yasuo Ohgaki wrote : Yasuo Ohgaki wrote: Markus Fischer wrote: I tested the CGI version (command line) and the first outptus: $ php -f 14226.php BBB$ $ php -v 4.2.0-dev (with usual enable debug, etc) so this does only apply to apache? can you test the CGI version too? - Markus Dear Markus, Are you going to fix this bug? If yes, I'll wait your patch :) Best Regards, -- Yasuo Ohgaki _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- Please always Cc to me when replying to me on the lists. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14226 Updated: multiple ob_end_clean() problem
ID: 14226 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Output Control Operating System: Linux 2.4.4/glibc 2.2.2 PHP Version: 4.1.0RC CVS (2001/12/2) New Comment: Ok I think I found what's wrong in PHP. If zlib.output_compression is enabled and the zlib output compression handler is deleted from php_ob_buffer, output will not be sent. I'll leave the real fix for people who knows about zlib output compression and output buffering. I just need to know nesting level to make my script work as I want. I'll send patch for the new function later. Previous Comments: [2001-12-02 08:20:20] [EMAIL PROTECTED] A little update. ob_end_flush() has problem also. [2001-11-26 06:16:30] [EMAIL PROTECTED] I cannot reproduce segfualt, but it seems PHP may segfault with this. Here is apache error log. [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] [notice] child pid 6681 exit signal Segmentation fault (11) [2001-11-26 06:06:17] [EMAIL PROTECTED] 4.1.0RC and 4.2.0-dev doesn't output last echo statement. Nesting level handling problem? ?php ob_start(); echo AAA; ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); echo BBB; ? Edit this bug report at http://bugs.php.net/?id=14226edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14226 Updated: multiple ob_end_clean() problem
ID: 14226 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Output Control Operating System: Linux PHP Version: 4.1.0RC1 New Comment: I cannot reproduce segfualt, but it seems PHP may segfault with this. Here is apache error log. [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] Script: '/home/yohgaki/public_html/bugs/output/bug.php' --- output.c(245) : Block 0x0818A668 status: Beginning: Overrun (magic=0x401D1178, expected=0x7312F8DC) End: Unknown --- [Mon Nov 26 19:45:19 2001] [notice] child pid 6681 exit signal Segmentation fault (11) Previous Comments: [2001-11-26 06:06:17] [EMAIL PROTECTED] 4.1.0RC and 4.2.0-dev doesn't output last echo statement. Nesting level handling problem? ?php ob_start(); echo AAA; ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); ob_end_clean(); echo BBB; ? Edit this bug report at http://bugs.php.net/?id=14226edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]