|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-03-19 19:48 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
code to reproduce : <?php ob_start(); echo "foo\n"; ob_get_clean(); if(!headers_sent()) ini_set('zlib.output_compression', true); echo "end\n";