Bug #16673 Updated: callback registered via ob_start is called when not expected

From: Date: Sat, 04 May 2002 03:13:31 +0000
Subject: Bug #16673 Updated: callback registered via ob_start is called when not expected
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6869@lists.php.net to get a copy of this message
ID: 16673 Updated by: yohgaki@php.net Reported By: bob@mroczka.com -Status: Open +Status: Feedback Bug Type: Output Control Operating System: linux 2.4.18 PHP Version: 4.2.0 New Comment: I guess you have some ob_flush() functions, don't you? Previous Comments: ------------------------------------------------------------------------ [2002-04-17 18:58:31] bob@mroczka.com i have the following code where ... represents some echo statements but does not include any ob_xxx calls. ob_start("func"); ... ob_end_clean(); and func is defined as: function func ($buf) { error_log("got here",0); return $buf; } when this code runs i get "got here" in my error log. i am expecting the ob_end_clean call to turn off output buffering which includes not calling the callback I registered. i am using 4.2.0rc2 currently. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16673&edit=1

« previous php.bugs (#6869) next »