From:             
Operating system: Windows XP SP3 x86
PHP version:      5.4.0alpha3
Package:          Output Control
Bug Type:         Bug
Bug description:ob_gzhandler always conflicts with zlib.output_compression

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 bug report at https://bugs.php.net/bug.php?id=55544&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55544&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55544&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55544&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55544&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55544&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55544&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55544&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55544&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55544&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55544&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55544&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55544&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55544&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55544&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55544&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55544&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55544&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55544&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55544&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55544&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55544&r=mysqlcfg

Reply via email to