diff --git a/ecrire/inc_version.php3 b/ecrire/inc_version.php3 index 077f44249fde050cc3f2e19ca4c49ad1ca7ea799..87b307767ee8c465273bfafa1d5d89975865f14c 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;