Sorry, the full code to reproduce is this one :
<?php
ob_start(); echo "foo\n"; ob_end_clean();
if(!headers_sent())
ini_set('zlib.output_compression', true);
echo "bar\n";
?>
and it's a PHP 5.4 bug (upstream), that check doesn't exist in PHP
5.3.10 (the second part, about (status & PHP_OUTPUT_WRITTEN)) :
if (stage == PHP_INI_STAGE_RUNTIME) {
status = php_output_get_status(TSRMLS_C);
if (status & PHP_OUTPUT_SENT) {
php_error_docref("ref.outcontrol" TSRMLS_CC,
E_WARNING, "Cannot change zlib.output_compression - headers already se
nt");
return FAILURE;
} else if ((status & PHP_OUTPUT_WRITTEN) && int_value) {
php_error_docref("ref.outcontrol" TSRMLS_CC,
E_WARNING, "Cannot enable zlib.output_compression - there has already
been output");
return FAILURE;
}
}
Should I report that upstream ?
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org