From 566d56e5db7696b98bbc5a76b7de9abc9e543efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sun, 5 Aug 2001 11:35:41 +0000 Subject: [PATCH] create the variable $is_show_processlist so the same regular expression don't have to be tested three times --- ob_lib.inc.php3 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ob_lib.inc.php3 b/ob_lib.inc.php3 index 77876de08..c4a28313f 100644 --- a/ob_lib.inc.php3 +++ b/ob_lib.inc.php3 @@ -31,8 +31,14 @@ if (!defined('__OB_LIB_INC__')) { * * (Patch by Garth Gillespie, modified by Marc Delisle) */ - if (@get_cfg_var('output_handler') == 'ob_gzhandler') { - $mode = 0; + if (@function_exists('ini_get')) { + if (@ini_get('output_handler') == 'ob_gzhandler') { + $mode = 0; + } + } else { + if (@get_cfg_var('output_handler') == 'ob_gzhandler') { + $mode = 0; + } } // End patch