ID: 36514 Updated by: [EMAIL PROTECTED] Reported By: lunter at interia dot pl Status: Open Bug Type: Output Control Operating System: winXP PHP Version: 5.1.2 New Comment:
ob_clean() restarts the gz handler. Previous Comments: ------------------------------------------------------------------------ [2006-02-24 14:35:35] lunter at interia dot pl PS. Please note that ob_clean() function does not destroy the output buffer, but only clean (erase) the output buffer. http://pl2.php.net/manual/en/function.ob-clean.php ------------------------------------------------------------------------ [2006-02-24 14:31:23] lunter at interia dot pl Description: ------------ ob_gzhandler() issue Reproduce code: --------------- // script 1 <? ob_start('ob_gzhandler'); print(str_repeat('a',5)); ob_clean(); print(str_repeat('b',5)); ob_end_flush(); ?> // script 2 <? ob_start(); print(str_repeat('a',5)); ob_clean(); print(str_repeat('b',5)); ob_end_flush(); ?> Expected result: ---------------- Script 1 (using compression) output from buffer to browser: "bbbbb" like Script 2 output from buffer to browser: "bbbbb" Actual result: -------------- Script 1 (using compression) output from buffer to browser incorect data... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36514&edit=1