Edit report at https://bugs.php.net/bug.php?id=55544&edit=1
ID: 55544
Comment by: jacky at prahec 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:
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
Previous Comments:
------------------------------------------------------------------------
[2011-09-19 14:37:30] [email protected]
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] [email protected]
Automatic comment from SVN on behalf of mike
Revision: http://svn.php.net/viewvc/?view=revision&revision=316992
Log: Fixed bug #55544 ob_gzhandler always conflicts with zlib.output_compression
------------------------------------------------------------------------
[2011-08-31 02:58:41] diogin at gmail dot com
Description:
------------
Windows XP SP3 x86, Apache 2.2, PHP 5.4.0alpha3, with the following php.ini
configuration options:
output_buffering = Off
zlib.output_compression = Off
Run this script twice through browser, you will see a warning and a notice:
<?php
ob_start('ob_gzhandler');
echo 'hello, world';
ob_end_flush();
?>
And the error messages are:
Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' conflicts
with 'zlib output compression' in D:\soft\develop\web\php\5.4\0\var\index.php
on line 2
Notice: ob_start() [ref.outcontrol]: failed to create buffer in
D:\soft\develop\web\php\5.4\0\var\index.php on line 2
hello, world
Test script:
---------------
<?php
ob_start('ob_gzhandler');
echo 'hello, world';
ob_end_flush();
?>
Expected result:
----------------
No warnings or notices will be raised.
Actual result:
--------------
A warning and a notice are raised.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55544&edit=1