Bug #55544 [Com]: ob_gzhandler always conflicts with zlib.output_compression
Edit report at https://bugs.php.net/bug.php?id=55544edit=1 ID: 55544 Comment by: v dot a dot popov at gmail dot com Reported by:diogin at gmail dot com Summary:ob_gzhandler always conflicts with zlib.output_compression Status: Closed Type: Bug Package:Output Control Operating System: Windows XP SP3 x86 PHP Version:5.4.0alpha3 Assigned To:mike Block user comment: N Private report: N New Comment: Seems to be a problem in merging the fix to actual branch, which releases are made of. This commit: http://git.php.net/?p=php-src.git;a=commit;h=85a62e9086db7a8ddfcda4ab1279a2439935f8d5 really fixes the problem, but relevant line is not present in php-5.4.3 and php-5.4.4. Previous Comments: [2012-06-11 22:36:46] php at pointpro dot nl This issue remains on ArchLinux running: PHP 5.4.3 (built: May 31 2012 10:40:02). Even though zlib.output_compression is set to Off in php.ini and phpinfo(); reports this setting as being off, I still get this warning message at each run of any PHP script. Or more specific: PHP Warning: Unknown: output handler 'zlib output compression' conflicts with 'ob_gzhandler' in Unknown on line 0 The same issue happens both when running through lighttpd as when using the CLI. If any more information is required, please let me know which. [2012-04-18 09:48:46] larue...@php.net Automatic comment on behalf of mike Revision: http://git.php.net/?p=php-src.git;a=commit;h=8f857603b462c123c7b10191c691c0d0f2a6acbc Log: Fixed bug #55544 ob_gzhandler always conflicts with zlib.output_compression [2012-04-13 10:25:45] jacky at prahec dot com I have the same problem, using php_value output_handler ob_gzhandler in .htaccess produces the same warning all the time. I've been trying to bypass the problem but nothing works. In 5.3.8 I didn't have that problem. So downgraded for now. PHP Ini: output_buffering = Off zlib.output_compression = Off [2011-09-19 14:37:30] m...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. [2011-09-19 14:36:43] m...@php.net Automatic comment from SVN on behalf of mike Revision: http://svn.php.net/viewvc/?view=revisionamp;revision=316992 Log: Fixed bug #55544 ob_gzhandler always conflicts with zlib.output_compression The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=55544 -- Edit this bug report at https://bugs.php.net/bug.php?id=55544edit=1
Bug #62335 [Com]: zlib conflict with gzhandler
Edit report at https://bugs.php.net/bug.php?id=62335edit=1 ID: 62335 Comment by: v dot a dot popov at gmail dot com Reported by:hajo at csphere dot eu Summary:zlib conflict with gzhandler Status: Open Type: Bug Package:Zlib related Operating System: Windows 7 PHP Version:5.4.4 Block user comment: N Private report: N New Comment: Seems to be a problem in merging the fix to actual branch, which releases are made of. This commit: http://git.php.net/?p=php-src.git;a=commit;h=85a62e9086db7a8ddfcda4ab1279a2439935f8d5 really fixes the problem, but relevant line is not present in php-5.4.3 and php-5.4.4. Previous Comments: [2012-06-18 13:39:29] hajo at csphere dot eu bug 55544 is about this issue, too. between stable php 5.4.0 and 5.4.3 it was fixed and seems to fail again now. [2012-06-15 16:31:45] mtanalin at yandex dot ru 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. [2012-06-15 14:50:54] hajo at csphere dot eu update: the issue always starts on first refresh, so it might be caused by the fix for bug 60761, just guessing. [2012-06-15 14:35:03] hajo at csphere dot eu there is also a second error message, but that might be clear: ob_start(): failed to create buffer [2012-06-15 14:32:28] 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 -- Edit this bug report at https://bugs.php.net/bug.php?id=62335edit=1