Bug #61443 [Fbk->Asn]: Since upgrade to PHP 5.4, we can't change zlib.output_compression on the fly.

From: Date: Tue, 20 Mar 2012 10:07:19 +0000
Subject: Bug #61443 [Fbk->Asn]: Since upgrade to PHP 5.4, we can't change zlib.output_compression on the fly.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-168643@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61443&edit=1 ID: 61443 User updated by: debian at ange7 dot com 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: Feedback +Status: Assigned 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: code to reproduce : <?php ob_start(); echo "foo\n"; ob_get_clean(); if(!headers_sent()) ini_set('zlib.output_compression', true); echo "end\n"; Previous Comments: ------------------------------------------------------------------------ [2012-03-19 21:32:29] mike@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

« previous php.bugs (#168643) next »