From: if-post at ifinterface dot com Operating system: Windows XPx32 SP3 PHP version: 5.4.10 Package: *Web Server problem Bug Type: Bug Bug description:Don't work ob_gzhandler
Description: ------------ PHP 5.4.10 Windows XPx32 SP3 Apache/2.2.22 VC9 Don't work ob_gzhandler in ob_start('ob_gzhandler'); I don't receive header=Content-Encoding: gzip (realy don't zip) when I specify header=Content-Length: On Ubuntu 12.04x64 (Apache/2.2.22 PHP 5.4.9) - all ok! On Windows XPx32 (Apache/2.2.22 VC9 PHP 5.3) - all ok! Test script: --------------- <?php function fnecho($a){ ob_start('ob_gzhandler'); header("Content-Length: ".strlen($a));//to was without chunks echo $a; ob_end_flush(); } fnecho("Anything... Tra-tata... Anything... Tra-tata... Anything... Tra-tata... Anything... Tra-tata... Anything... Tra-tata... Anything... Tra-tata... Anything... Tra-tata... Anything... Tra-tata... Anything... Tra-tata... Anything... Tra-tata... Anything... Tra-tata... Anything... Tra-tata..."); ?> Expected result: ---------------- header=Content-Encoding: gzip Actual result: -------------- Nothing = no zip. -- Edit bug report at https://bugs.php.net/bug.php?id=63836&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63836&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63836&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63836&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63836&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63836&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63836&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63836&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63836&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63836&r=support Expected behavior: https://bugs.php.net/fix.php?id=63836&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63836&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63836&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63836&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63836&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63836&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63836&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63836&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63836&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63836&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63836&r=mysqlcfg