make dl safemode safety

This commit is contained in:
Steve Alberty
2001-06-27 14:06:00 +00:00
parent 2fb1ad832e
commit e66e54abcb

View File

@@ -9,7 +9,7 @@ if(!defined("__LIB_INC__")){
// load the mysql extensions or not - staybyte - 26. June 2001 // load the mysql extensions or not - staybyte - 26. June 2001
if (defined("PHP_OS") && eregi("win", PHP_OS)) $suffix=".dll"; if (defined("PHP_OS") && eregi("win", PHP_OS)) $suffix=".dll";
else $suffix=".so"; else $suffix=".so";
if (!extension_loaded("mysql")) @dl("mysql".$suffix); if (!extension_loaded("mysql") && !get_cfg_var("safe_mode")) @dl("mysql".$suffix);
if (!extension_loaded("mysql")){ if (!extension_loaded("mysql")){
echo $strCantLoadMySQL; echo $strCantLoadMySQL;
exit; exit;