// Fix weird bug with some hosting
This commit is contained in:
1 parent
3ee70b56d7
commit
520fc21150
2 files changed
+1
-17
No files matched your search
@@ -2104,22 +2104,6 @@ FileETag INode MTime Size
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (function_exists('phpinfo'))
|
||||
{
|
||||
// If apache_get_modules does not exists,
|
||||
// we parse phpinfo(INFO_MODULES) return string
|
||||
ob_start();
|
||||
phpinfo(INFO_MODULES);
|
||||
$phpinfo = ob_get_contents();
|
||||
ob_end_clean();
|
||||
if (strpos($phpinfo, $name) !== false)
|
||||
return true;
|
||||
}
|
||||
// otherwise, use the default behavior
|
||||
// see return value at the end of the function
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user