mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
fixed check_install for non-existing function dl, eg. in multithreaded webservers
This commit is contained in:
parent
7a89d5312d
commit
7ed680e30c
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user