Fixed bug #440430 with php3

This commit is contained in:
Loïc Chapeaux
2001-07-11 19:19:56 +00:00
parent 39dfc383e9
commit 8498751ed7

View File

@@ -11,8 +11,8 @@ if(!defined("__LIB_INC__")){
else $suffix=".so";
if (intval(phpversion())==3) $extension="MySQL";
else $extension="mysql";
if (!extension_loaded($extension) && !get_cfg_var("safe_mode")) @dl($extension.$suffix);
if (!extension_loaded($extension)){
if (!@extension_loaded($extension) && !@get_cfg_var('safe_mode')) @dl($extension.$suffix);
if (!@extension_loaded($extension)){
echo $strCantLoadMySQL;
exit;
}