Bug #14226 Updated: multiple ob_end_clean() problem
| From: | yohgaki@php.net | Date: | Fri, 01 Mar 2002 02:36:50 +0000 |
| Subject: | Bug #14226 Updated: multiple ob_end_clean() problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1368@lists.php.net to get a copy of this message | ||
ID: 14226
Updated by: yohgaki@php.net
Reported By: yasuo_ohgaki@yahoo.com
-Status: Assigned
+Status: Closed
Bug Type: Output Control
-Operating System: any probably
+Operating System: ANY
PHP Version: 4.1.0/4.2.0
Assigned To: yohgaki
New Comment:
Patch will be commited shortly.
However, a issue is left. Flush feature need to be reimplemented to
work.
Previous Comments:
------------------------------------------------------------------------
[2002-02-07 02:41:20] yohgaki@php.net
To fix this bug, buffer state managment for each outout buffer is
requried.
- Is started?
- Is deletable after buffering is started?
for internal buffers. (zlib.compression namely)
I can add new parameter, deletable or not, to ob_start() for user
defined handlers also. Anyone need this?
------------------------------------------------------------------------
[2001-12-12 04:18:32] yohgaki@php.net
Assigned to myself.
------------------------------------------------------------------------
[2001-12-02 17:19:13] yasuo_ohgaki@yahoo.com
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] yasuo_ohgaki@yahoo.com
A little update.
ob_end_flush() has problem also.
------------------------------------------------------------------------
[2001-11-26 06:16:30] yasuo_ohgaki@yahoo.com
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)
------------------------------------------------------------------------
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/14226
--
Edit this bug report at http://bugs.php.net/?id=14226&edit=1