diff options
Diffstat (limited to 'examples/detect.php')
-rw-r--r-- | examples/detect.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/detect.php b/examples/detect.php index aa717c8..3c13a5a 100644 --- a/examples/detect.php +++ b/examples/detect.php @@ -314,7 +314,7 @@ function detect_stores($r, &$out) $found = array(); foreach (array('sqlite', 'mysql', 'pgsql') as $dbext) { - if (extension_loaded($dbext) || (ini_get('enable_dl') && dl($dbext . '.' . PHP_SHLIB_SUFFIX))) { + if (extension_loaded($dbext) || (function_exists('dl') && @dl($dbext . '.' . PHP_SHLIB_SUFFIX))) { $found[] = $dbext; } } |