|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-12-28 10:44 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2012-12-28 10:44 UTC] ab@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 06:00:01 2025 UTC |
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.