ID: 36921 User updated by: caio53 at gmail dot com -Summary: ob_start("gz_handler"); Reported By: caio53 at gmail dot com -Status: Bogus +Status: Open Bug Type: Output Control Operating System: Windows, Linux PHP Version: 5.1.2 New Comment:
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"; ?> Previous Comments: ------------------------------------------------------------------------ [2006-03-30 18:10:06] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. There's no gz_handler, ie. you didn't actually start any output buffer. ------------------------------------------------------------------------ [2006-03-30 10:58:45] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36921&edit=1