aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-05-22 06:48:59 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-05-22 06:48:59 -0400
commit9b62500a1068fd9c17409e435b53a33bb1cf6838 (patch)
treedf7dedca08817b678fcd2bda81ec310e8e2eb7bb /phpBB/includes/functions.php
parent5e81b058cf703e28fff6686cc6f8d9770b740a37 (diff)
downloadforums-9b62500a1068fd9c17409e435b53a33bb1cf6838.tar
forums-9b62500a1068fd9c17409e435b53a33bb1cf6838.tar.gz
forums-9b62500a1068fd9c17409e435b53a33bb1cf6838.tar.bz2
forums-9b62500a1068fd9c17409e435b53a33bb1cf6838.tar.xz
forums-9b62500a1068fd9c17409e435b53a33bb1cf6838.zip
[ticket/10188] Use ob_get_level in msg_handler for output buffering check.
Output buffering may be enabled via various approaches, among them: * output_buffering in php.ini; * output_handler in php.ini enables output_buffering; * ob_start call. ob_get_level allows us to query php runtime for the actual output buffering status. PHPBB3-10188
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index ceaf426850..9f1d39118a 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3743,7 +3743,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
if (strpos($errfile, 'cache') === false && strpos($errfile, 'template.') === false)
{
// flush the content, else we get a white page if output buffering is on
- if ((int) @ini_get('output_buffering') === 1 || strtolower(@ini_get('output_buffering')) === 'on')
+ if (ob_get_level() > 0)
{
@ob_flush();
}