#33975 [Opn->Bgs]: ob_end_clean() does call output handler: unadequately result?

From: Date: Wed, 03 Aug 2005 13:02:47 +0000
Subject: #33975 [Opn->Bgs]: ob_end_clean() does call output handler: unadequately result?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-82876@lists.php.net to get a copy of this message
ID: 33975 Updated by: sniper@php.net Reported By: php at koterov dot ru -Status: Open +Status: Bogus Bug Type: Output Control Operating System: any PHP Version: 4.3.11 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2005-08-03 13:16:54] php at koterov dot ru Description: ------------ Seems ob_end_clean() does call output handler, but not ignore it. It is not adequately I suppose. The same bug is at http://bugs.php.net/bug.php?id=16673, but it is on "No feedback" status and I cannot change it to "Open". Reproduce code: --------------- <? $GLOBALS['called'] = false; function func($buf) { $GLOBALS['called'] = true; return $buf; } ob_start("func"); ob_end_clean(); var_dump($GLOBALS['called']); ?> Expected result: ---------------- false Actual result: -------------- true ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33975&edit=1

« previous php.bugs (#82876) next »