#21944 [Ver]: zlib compressed pages can be flushed causing compressed output to be displayed

From: Date: Thu, 15 May 2003 02:59:11 +0000
Subject: #21944 [Ver]: zlib compressed pages can be flushed causing compressed output to be displayed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39681@lists.php.net to get a copy of this message
ID: 21944 Updated by: wez@php.net Reported By: phpbug at paragontech dot com Status: Verified Bug Type: Zlib Related -Operating System: win NT 4.0 +Operating System: all -PHP Version: 4.3.0 +PHP Version: 4.3.x New Comment: This problem also occurs on our own gtk.php.net site with latest stable CVS. Previous Comments: ------------------------------------------------------------------------ [2003-01-30 03:18:27] moriyoshi@php.net I noticed this issue before the release of 4.3.0. A kind of Apache2 oddity. Should be fixed. ------------------------------------------------------------------------ [2003-01-29 10:48:20] phpbug at paragontech dot com This is a problem with IE 6.0.26 as well as Netscape Navigator 4.08. ------------------------------------------------------------------------ [2003-01-29 09:50:50] phpbug at paragontech dot com This is with apache2 2.0.44 on Win NT If zlib.output_compression = On in the php.ini, and a flush() statement is sent on a PHP page, the compressed output will be displayed in the browser, or the user will be asked to "download" the file. If you do download this file, all you would see is the compressed output. I've never seen this behavior in previous versions of PHP, it's quite possible that this behavior is by design (it does exactly what you tell it to, it flushes its output, but the results are unexpected.) Removing the flush() statements or setting zlib.output_compression = Off are possible solutions until a fix (if any) is made. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21944&edit=1

« previous php.bugs (#39681) next »