mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Seems that change to output buffer flushing is problematic with zlib.
This commit is contained in:
1 parent
d1c2179bbb
commit
2538835a12
4 files changed
+17
-4
No files matched your search
+4
-1
@@ -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";
|
||||
|
||||
|
||||
Reference in new issue
Block a user