From:             
Operating system: Linux
PHP version:      5.4.0
Package:          Zlib related
Bug Type:         Bug
Bug description:using ob_gzhandler will complain about headers already sent 
when no compression

Description:
------------
When using ob_gzhandler with PHP 5.4.0+, PHP will emit warnings after
flushing 
more than once (it looks like it's trying to modify headers on each
flush).

This problem didn't exist in PHP 5.3.


Test script:
---------------
<?php

ob_start('ob_gzhandler');

echo "PHP VERSION ".phpversion()."\n";
ob_flush();
flush();

echo "This is confusing:\n";
ob_flush();
flush();


Expected result:
----------------
PHP VERSION 5.5.0-dev
This is confusing:

Actual result:
--------------
PHP VERSION 5.5.0-dev
This is confusing:

Warning: Cannot modify header information - headers already sent by (output

started at php-src/moo.php:6) in php-src/moo.php on line 10


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

Reply via email to