fixed check_install for non-existing function dl, eg. in multithreaded webservers

This commit is contained in:
Ralf Becker 2004-05-19 09:37:14 +00:00
parent 7a89d5312d
commit 7ed680e30c

View File

@ -164,7 +164,8 @@
{
return True; // check only under windows
}
$availible = extension_loaded($name) || @dl(PHP_SHLIB_PREFIX.$name.'.'.PHP_SHLIB_SUFFIX);
// we check for the existens of 'dl', as multithreaded webservers dont have it !!!
$availible = extension_loaded($name) || function_exists('dl') && @dl(PHP_SHLIB_PREFIX.$name.'.'.PHP_SHLIB_SUFFIX);
echo ($availible ? $passed_icon : $warning_icon).' '.lang('Checking extension %1 is loaded or loadable',$name).': '.($availible ? lang('True') : lang('False'))."\n";