prevent to use dl() if dl not exists (PHP5)

This commit is contained in:
Steve Alberty
2001-08-15 11:32:36 +00:00
parent 43515e8740
commit b1d45f0dd0
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-08-15 Steve Alberty <alberty@neptunlabs.de>
* lib.inc.php3: prevent to use dl() if dl not exists (PHP5)
2001-08-14 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* lib.inc.php3; db_readdump.php3, lines 85-88: Fixed some coding style
inconcistencies and make the patch from Robin PHP3 compatible.

View File

@@ -106,7 +106,7 @@ if (!defined('__LIB_INC__')){
} else {
$extension = 'mysql';
}
if (!@extension_loaded($extension) && !@get_cfg_var('safe_mode')) {
if (!@extension_loaded($extension) && !@get_cfg_var('safe_mode') && @function_exists('dl')) {
@dl($extension.$suffix);
}
if (!@extension_loaded($extension)) {