Edit report at https://bugs.php.net/bug.php?id=55544&edit=1
ID: 55544 Updated by: m...@php.net Reported by: diogin at gmail dot com Summary: ob_gzhandler always conflicts with zlib.output_compression -Status: Open +Status: Assigned Type: Bug Package: Output Control Operating System: Windows XP SP3 x86 PHP Version: 5.4.0alpha3 -Assigned To: +Assigned To: mike Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [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