Skip to content
Extraits de code Groupes Projets
Valider 3d02bec1 rédigé par Fil's avatar Fil
Parcourir les fichiers

avec ini_get on peut vérifier que la fonction ob_get_contents n'a pas été désactivée. Ouf !

parent e6b926b4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter