Seems that change to output buffer flushing is problematic with zlib.

This commit is contained in:
Andrew McMillan committed 2012-06-14 13:36:15 +12:00
1 parent d1c2179bbb
commit 2538835a12
4 files changed
+17 -4

No files matched your search

+4 -1
View File
@@ -30,7 +30,10 @@ function catch_setup_errors($errno , $errstr , $errfile , $errline , $errcontext
return true;
}
if ( !headers_sent() ) header("Content-type: text/plain"); else echo "<pre>\n";
while ( ob_get_level() > 0 ) ob_end_flush();
try {
@ob_flush(); // Seems like it should be better to do the following but is problematic on PHP5.3 at least: while ( ob_get_level() > 0 ) ob_end_flush();
}
catch( Exception $ignored ) {}
echo "Error [".$errno."] ".$errstr."\n";
echo "At line ", $errline, " of ", $errfile, "\n";