|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-03-30 10:58 UTC] caio53 at gmail dot com
Description:
------------
ob_clean(); doesn't work when I use ob_start("gz_handler");
Reproduce code:
---------------
<?php
error_reporting(E_ALL);
ob_start("gz_handler");
echo "content";
ob_clean();
echo "more content";
?>
Expected result:
----------------
more content
Actual result:
--------------
content
Notice: ob_clean() [ref.outcontrol]: failed to delete buffer. No buffer to delete. in D:\neatcode\test.php on line 6
more content
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 23:00:01 2025 UTC |
Description: ------------ ob_clean(); doesn't properly with ob_start("ob_gzhandler"); Reproduce code: --------------- <?php error_reporting(E_ALL); ob_start("ob_gzhandler"); echo "content"; ob_clean(); echo "more content"; ?> Expected result: ---------------- more content Actual result: -------------- *no output* Workaround: -------------- <?php error_reporting(E_ALL); ob_start("ob_gzhandler"); echo "content"; ob_end_clean(); ob_start("ob_gzhandler"); echo "more content"; ?>phpinfo(); ZLib Support enabled Stream Wrapper support compress.zlib:// Stream Filter support zlib.inflate, zlib.deflate Compiled Version 1.2.3 Linked Version 1.2.3 and function_exists('ob_gzhandler') returns true