From 2f60c52a3c86250d08e3c3b60e67529ad580fc84 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 18 Aug 2004 05:45:25 +0000 Subject: [PATCH] Use ob_implicit_flush() rather than ob_end_flush() in install-utils. Ending the buffering completely will kill all subsequent output when PHP is globally configured to run through a gzip compression handler. Also, suppress the warning in LocalSettings.php when PHP tells us we can't run the gzip filter twice. --- config/index.php | 2 +- install-utils.inc | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/index.php b/config/index.php index 85890fa642..991e0e3607 100644 --- a/config/index.php +++ b/config/index.php @@ -827,7 +827,7 @@ if ( \$wgCommandLineMode ) { } } elseif ( empty( \$wgConfiguring ) ) { ## Compress output if the browser supports it - {$zlib}if( !ini_get( 'zlib.output_compression' ) ) ob_start( 'ob_gzhandler' ); + {$zlib}if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' ); } \$wgSitename = \"{$slconf['Sitename']}\"; diff --git a/install-utils.inc b/install-utils.inc index 34dd701762..1fb2cc8e82 100644 --- a/install-utils.inc +++ b/install-utils.inc @@ -1,8 +1,9 @@