#36514 [Opn]: ob_gzhandler() issue

From: Date: Fri, 24 Feb 2006 13:35:37 +0000
Subject: #36514 [Opn]: ob_gzhandler() issue
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93629@lists.php.net to get a copy of this message
ID: 36514 User updated by: lunter at interia dot pl Reported By: lunter at interia dot pl Status: Open Bug Type: Output Control Operating System: winXP PHP Version: 5.1.2 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#93629) next »