mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
suppress ob_flush() output and flush() at the end (within my tests this solved blank pages on some setups and do not affect gzip compression).
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8491 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
261b310b0d
commit
ab8177a033
1 changed files with 4 additions and 1 deletions
|
@ -2945,7 +2945,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
|||
{
|
||||
if (@extension_loaded('zlib') && !headers_sent())
|
||||
{
|
||||
ob_flush();
|
||||
@ob_flush();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3662,6 +3662,9 @@ function exit_handler()
|
|||
}
|
||||
}
|
||||
|
||||
// As a pre-caution... some setups display a blank page if the flush() is not there.
|
||||
@flush();
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue