Commit 9080c0df authored by Fil's avatar Fil
Browse files

Pour les hébergeurs paranos, on vérifie que ini_get() n'a pas été désactivé...

parent 133bb9e0
......@@ -98,10 +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_ini_get = (function_exists("ini_get")
&& (@ini_get('max_execution_time') > 0)); // verifier pas desactivee
$flag_gz = function_exists("gzopen");
$flag_ob = ($flag_ini_get
&& !ereg("ob_", @ini_get('disable_functions'))
&& !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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment