Re: Bug #14226 Updated: multiple ob_end_clean() problem

From: Date: Mon, 03 Dec 2001 02:44:59 +0000
Subject: Re: Bug #14226 Updated: multiple ob_end_clean() problem
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-72297@lists.php.net to get a copy of this message
Yasuo Ohgaki wrote: > ID: 14226 > User updated by: yasuo_ohgaki@yahoo.com > Reported By: yasuo_ohgaki@yahoo.com > 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. > This bug may cause segfualt (SIGPIPE). This patch will not fix all the problems for nested output buffers. Another output handler list is required to fix this bug completely, I think. Anyway, this patch fix problem partially. Hopefully, most of users will not notice partial output buffer fix. I don't have much time to spent to fix the problem now. It's better than nothing, right? New ob_get_level() function is in this patch. Comments are welcome. -- Yasuo Ohgaki

« previous php.dev (#72297) next »