|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61443 Since upgrade to PHP 5.4, we can't change zlib.output_compression on the fly.
Submitted: 2012-03-19 19:48 UTC Modified: 2012-04-24 18:44 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: debian at ange7 dot com Assigned: mike
Status: Closed Package: Zlib related
PHP Version: 5.4.0 OS: Debian Sid
Private report: No CVE-ID:
 [2012-03-19 19:48 UTC] debian at ange7 dot com
Package: php5
Version: 5.4.0-2
Severity: important

Since upgrade to PHP 5.4, we can't change zlib.output_compression on the 

Test script:
if (!headers_sent())
    ini_set('zlib.output_compression', true);
echo 'end';

Expected result:

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-19 21:32 UTC]
Cannot reproduce. Are you sure about your reproduce script?
 [2012-03-19 21:32 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: mike
 [2012-03-19 21:36 UTC]
-Package: PHP options/info functions +Package: Zlib related
 [2012-03-20 10:07 UTC] debian at ange7 dot com
code to reproduce :

ob_start(); echo "foo\n"; ob_get_clean(); 
if(!headers_sent()) ini_set('zlib.output_compression', true); echo "end\n";
 [2012-03-20 10:07 UTC] debian at ange7 dot com
-Status: Feedback +Status: Assigned
 [2012-04-24 18:37 UTC]
Automatic comment on behalf of mike
Log: fix bug #61443
 [2012-04-24 18:44 UTC]
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

 For Windows:
Thank you for the report, and for helping us make PHP better.

 [2012-04-24 18:44 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 17:01:54 2014 UTC