aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-04-04 11:41:58 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-04-04 11:41:58 +0000
commitab8177a0338c0d9746d87d97c5b3d9c9b7086aef (patch)
treef4f74b3f42932bf22a54ef712b1e1181b8a4181d /phpBB/includes/functions.php
parent261b310b0d3e9024e82ede7653a4baee6f83315f (diff)
downloadforums-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.php5
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;
}