From 6b19ea08a8dd206f27fb8b998567ce0de9a36692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Tue, 4 Sep 2001 20:34:19 +0000 Subject: [PATCH] if zlib output compression is set in the php configuration file, no output buffering should be run --- lib.inc.php3 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib.inc.php3 b/lib.inc.php3 index fe4cb3dfa..b9a9331d4 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -98,6 +98,12 @@ if (!defined('__LIB_INC__')){ if ($cfgPmaAbsoluteUri != '' && substr($cfgPmaAbsoluteUri, -1) != '/') { $cfgPmaAbsoluteUri .= '/'; } + // If zlib output compression is set in the php configuration file, no + // output buffering should be run + if (@function_exists('ini_get') && @ini_get('zlib.output_compression')) { + $cfgOBGzip = FALSE; + } + // Gets some constants include('./defines.inc.php3');