#21944 [Com]: zlib compressed pages can be flushed causing compressed output to be displayed
ID: 21944
Comment by: dennis at darknoise dot de
Reported By: phpbug at paragontech dot com
Status: Verified
Bug Type: Zlib Related
Operating System: all
PHP Version: 4.3.x
New Comment:
it also happens to me with a 1.3.x apache and php versions from 4.3.x
on RedHat Linux 7.3
Previous Comments:
------------------------------------------------------------------------
[2003-05-14 21:59:10] wez@php.net
This problem also occurs on our own gtk.php.net site with latest stable
CVS.
------------------------------------------------------------------------
[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
Thread (8 messages)