[php-maint] Bug#663960: Additionnal informations
Olivier Bonvalet
ob.reportbug at daevel.fr
Tue Mar 20 10:19:53 UTC 2012
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 ?
More information about the pkg-php-maint
mailing list