|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-24 10:05 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 01:00:01 2025 UTC |
Description: ------------ Hi When using the ob_gzhandler (and no output_buffering is set in .htaccess) and using Sessions it won't compress the output. And this happens only when PHP needs to rewrite the output because of trans_sid. In PHP 4.3.0 additionally the Error "Warning: (null)() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in Unknown on line 0" occured. Bye Markus Malkusch Reproduce code: --------------- <?php session_start(); if (!isset($_SESSION['i'])) { $_SESSION['i'] = 1; } else { $_SESSION['i']++; } ob_start('ob_gzhandler'); echo 'i = '.$_SESSION['i']; ?><a href="bug.html">bug.html</a> Expected result: ---------------- A compressed output to the browser even, when URIs are rewritten. Actual result: -------------- No compressed output, when PHP has to rewrite the URIs.