#49816 [Fbk]: output corruption using flush

From: Date: Mon, 19 Oct 2009 15:15:37 +0000
Subject: #49816 [Fbk]: output corruption using flush
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143691@lists.php.net to get a copy of this message
ID: 49816 Updated by: jani@php.net Reported By: paul at wcclan dot net Status: Feedback Bug Type: Output Control Operating System: FreeBSD 7.2-RELEASE-p4 PHP Version: 5.2.11 New Comment: See also bug #48725 Previous Comments: ------------------------------------------------------------------------ [2009-10-19 15:08:38] jani@php.net What was the last PHP version it worked with..? (try with same libs!) ------------------------------------------------------------------------ [2009-10-15 20:28:03] radek at pinkbike dot com I have the same problem on Centos 5.2, php 5.2.11 Encoding bug using flush with zlib output handler. To reproduce... Turn on zlib.output_compression = On and load a page containing the following with a browser. <? echo "test"; flush(); ?> the result is garbled up ‹&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;*I-.&#65533;&#65533;&#65533;ÿÿ&#65533; ~Ø&#65533;&#65533;&#65533; If you dont use flush() works correctly. If you dont turn on zlib.output_compression works correctly. Note that it's not simply user config error as it works correctly without flush(). ------------------------------------------------------------------------ [2009-10-10 16:57:40] alec at alec dot pl Same here on Gentoo. Nothing was changed in configuration only PHP has been updated to 5.2.11 and my scripts stops working. zlib.output_compression=Off fixes issue, but also disables compression. Maybe important, I've got updated zlib library to version 1.2.3 in the same time. ------------------------------------------------------------------------ [2009-10-09 17:07:47] paul at wcclan dot net setting zlib.output_compression to Off fixes the problem. I have no output handlers defined. Is there anything more that might of interrest? ------------------------------------------------------------------------ [2009-10-08 21:12:05] paul at wcclan dot net possibly interresting php.ini setting: zlib.output_compression = On ------------------------------------------------------------------------ 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/49816 -- Edit this bug report at http://bugs.php.net/?id=49816&edit=1

« previous php.bugs (#143691) next »