Bug #17923 Updated: needing ob_end_clean_all();
| From: | tit dot petric at telemach dot net | Date: | Sat, 22 Jun 2002 15:23:33 +0000 |
| Subject: | Bug #17923 Updated: needing ob_end_clean_all(); | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11795@lists.php.net to get a copy of this message | ||
ID: 17923
Updated by: tit.petric@telemach.net
Reported By: tit.petric@telemach.net
Status: Open
Bug Type: Feature/Change Request
Operating System: linux/all
PHP Version: 4.2.0
New Comment:
i was wrong on the _clean not cleaning the data, i just re-tested it...
ob_end_clean_all() would still be fine.
Previous Comments:
------------------------------------------------------------------------
[2002-06-22 11:20:40] tit.petric@telemach.net
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 this bug report at http://bugs.php.net/?id=17923&edit=1