Bug #17923: needing ob_end_clean_all();
| From: | tit dot petric at telemach dot net | Date: | Sat, 22 Jun 2002 15:20:41 +0000 |
| Subject: | Bug #17923: needing ob_end_clean_all(); | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-11794@lists.php.net to get a copy of this message | ||
From: tit.petric@telemach.net
Operating system: linux/all
PHP version: 4.2.0
PHP Bug Type: Feature/Change Request
Bug description: needing ob_end_clean_all();
in case we use ob_start() on multiple times, we have more output buffers
(more levels of them), and we sometimes dont know of how many to dispose
(in case of errors)
p.s. i think ob_end_clean() doesnt really "clean" the data collected on
4.2, and i think i spotted this somewhere else..
function condor_error($errno, $errstr, $errfile, $errline)
{
$errors = array(E_USER_ERROR, E_ERROR, E_PARSE);
if (in_array($errno,$errors)) {
// ob_end_clean();
// ob_end_clean();
// ob_end_clean();
echo "<B>FATAL</B> [".$errno."]
".$errstr."<br>\n";
echo "Fatal error at line ".$errline." of file
".$errfile;
echo ", PHP ".PHP_VERSION." (".PHP_OS.")<br>\n";
echo "Aborting...<br><br>\n\n";
exit;
}
}
set_error_handler("condor_error");
replace the //ob_end_clean() with ob_end_clean_all();
if its bogus, then i apologise for wasting your time :)
--
Edit bug report at http://bugs.php.net/?id=17923&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17923&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17923&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17923&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17923&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17923&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17923&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17923&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17923&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17923&r=globals