From 7ed680e30c2a6d0575f2025d554b8b6f3bd92139 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 19 May 2004 09:37:14 +0000 Subject: [PATCH] fixed check_install for non-existing function dl, eg. in multithreaded webservers --- setup/check_install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/check_install.php b/setup/check_install.php index a8b5d2856d..f8320275bc 100644 --- a/setup/check_install.php +++ b/setup/check_install.php @@ -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";