From: [EMAIL PROTECTED]
Operating system: linux 2.4.18
PHP version: 4.2.0
PHP Bug Type: Output Control
Bug description: callback registered via ob_start is called when not expected
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 bug report at http://bugs.php.net/?id=16673&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16673&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16673&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16673&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16673&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16673&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16673&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16673&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16673&r=submittedtwice