From 3d02bec12ade93e59372dc04b69fe0cf5517616c Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Wed, 21 Aug 2002 21:59:09 +0000 Subject: [PATCH] =?UTF-8?q?avec=20ini=5Fget=20on=20peut=20v=C3=A9rifier=20?= =?UTF-8?q?que=20la=20fonction=20ob=5Fget=5Fcontents=20n'a=20pas=20=C3=A9t?= =?UTF-8?q?=C3=A9=20d=C3=A9sactiv=C3=A9e.=20Ouf=20!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/inc_version.php3 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ecrire/inc_version.php3 b/ecrire/inc_version.php3 index 077f44249f..87b307767e 100644 --- a/ecrire/inc_version.php3 +++ b/ecrire/inc_version.php3 @@ -98,8 +98,11 @@ $flag_strpos_3 = (@strpos('baba', 'a', 2) == 3); $flag_get_cfg_var = (@get_cfg_var('error_reporting') != ""); if ($flag_function_exists) { + $flag_ini_get = function_exists("ini_get"); $flag_gz = function_exists("gzopen"); - $flag_ob = (function_exists("ob_start") && function_exists("ob_get_contents")); + $flag_ob = ($flag_ini_get + && !ereg("ob_", ini_get('disable_functions')) + && function_exists("ob_start")); $flag_obgz = ($flag_ob && function_exists("ob_gzhandler")); $flag_preg_replace = function_exists("preg_replace"); $flag_crypt = function_exists("crypt"); @@ -109,6 +112,7 @@ if ($flag_function_exists) { $flag_utf8_decode = function_exists("utf8_decode"); } else { + $flag_ini_get = false; $flag_gz = false; $flag_obgz = false; $flag_ob = false; -- GitLab