diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-04-04 11:41:58 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-04-04 11:41:58 +0000 |
commit | ab8177a0338c0d9746d87d97c5b3d9c9b7086aef (patch) | |
tree | f4f74b3f42932bf22a54ef712b1e1181b8a4181d /phpBB/includes/functions.php | |
parent | 261b310b0d3e9024e82ede7653a4baee6f83315f (diff) | |
download | forums-ab8177a0338c0d9746d87d97c5b3d9c9b7086aef.tar forums-ab8177a0338c0d9746d87d97c5b3d9c9b7086aef.tar.gz forums-ab8177a0338c0d9746d87d97c5b3d9c9b7086aef.tar.bz2 forums-ab8177a0338c0d9746d87d97c5b3d9c9b7086aef.tar.xz forums-ab8177a0338c0d9746d87d97c5b3d9c9b7086aef.zip |
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
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 2388ae66b4..1baa7abd9a 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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; } |