Edit report at https://bugs.php.net/bug.php?id=61443&edit=1
ID: 61443 Updated by: m...@php.net Reported by: debian at ange7 dot com Summary: Since upgrade to PHP 5.4, we can't change zlib.output_compression on the fly. -Status: Assigned +Status: Closed Type: Bug Package: Zlib related Operating System: Debian Sid PHP Version: 5.4.0 Assigned To: mike Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2012-04-24 18:37:47] m...@php.net Automatic comment on behalf of mike Revision: http://git.php.net/?p=php-src.git;a=commit;h=7c93a16477d7e4d6e0386d0613558360f036d57b Log: fix bug #61443 ------------------------------------------------------------------------ [2012-03-20 10:07:19] debian at ange7 dot com code to reproduce : <?php ob_start(); echo "foo\n"; ob_get_clean(); if(!headers_sent()) ini_set('zlib.output_compression', true); echo "end\n"; ------------------------------------------------------------------------ [2012-03-19 21:32:29] m...@php.net Cannot reproduce. Are you sure about your reproduce script? ------------------------------------------------------------------------ [2012-03-19 19:48:59] debian at ange7 dot com Description: ------------ Package: php5 Version: 5.4.0-2 Severity: important Since upgrade to PHP 5.4, we can't change zlib.output_compression on the fly. Test script: --------------- <?php if (!headers_sent()) ini_set('zlib.output_compression', true); echo 'end'; ?> Expected result: ---------------- end Actual result: -------------- Warning: ini_set(): Cannot enable zlib.output_compression - there has already been output in /home/alex/workspace/test/www/nouveauScript.php on line 3 end ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61443&edit=1