|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-06-15 14:32 UTC] hajo at csphere dot eu
Description:
------------
with php 5.3.13, 5.3.14 and 5.4.3 the script is working well while it delivers the following error with php 5.4.4:
ob_start(): output handler 'ob_gzhandler' conflicts with 'zlib output compression'
webserver is nginx 1.2 without deflate mods using php via fcgi
php.ini setting 'zlib.output_compression' is turned off
Test script:
---------------
error_reporting(E_ALL);
$zlib_oc = ini_get('zlib.output_compression');
if(empty($zlib_oc)) {
ob_start('ob_gzhandler');
}
echo 'test';
Expected result:
----------------
test
Actual result:
--------------
test with the error message attached that was mentioned above
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 15 21:00:01 2025 UTC |
Same error for me with this code: ob_start('ob_gzhandler'); Windows 7, Apache 2.4, PHP 5.4.4 thread-safe, "zlib.output_compression" is set to "off" in php.ini. The bug disappears if I add "php_flag zlib.output_compression off" in .htaccess file of specific host. So, probably, the bug is that global (from php.ini) "zlib.output_compression=off" setting is just _ignored_ in PHP 5.4.4.