Bug #21751: Part one never let this happen again...

This commit is contained in:
Marcus Boerger 2003-01-25 19:45:11 +00:00
parent ef021e8964
commit a7d10f8aa4

View File

@ -70,9 +70,14 @@ putenv('SSH_TTY=deleted');
$cwd = getcwd();
set_time_limit(0);
while(ob_get_level()) {
ob_end_clean();
}
// delete as much output buffers as possible
$ob = ob_get_level();
if ($ob) do {
@ob_end_clean();
} while(($ob > 1) && ($ob-- > ob_get_level()));
if (ob_get_level()) echo "Not all buffers were deleted.\n";
error_reporting(E_ALL);
ini_set('magic_quotes_runtime',0); // this would break tests by modifying EXPECT sections