summaryrefslogtreecommitdiffstats
path: root/examples/detect.php
diff options
context:
space:
mode:
authorChris Buckley <git@cmbuckley.co.uk>2011-05-03 18:04:07 +0100
committerChris Buckley <git@cmbuckley.co.uk>2011-05-03 18:04:07 +0100
commit1787658d1572edd3b0cdef0bd8c307e7b37384ea (patch)
treeaee6afc74332aee1ea83fcced0473b3ff131fd36 /examples/detect.php
parent00676efc3722784e783fba217d54b3ee33bf833e (diff)
downloadphp-openid-1787658d1572edd3b0cdef0bd8c307e7b37384ea.zip
php-openid-1787658d1572edd3b0cdef0bd8c307e7b37384ea.tar.gz
php-openid-1787658d1572edd3b0cdef0bd8c307e7b37384ea.tar.bz2
fix for rest of dl() calls, also avoid ini_set() as may not work on safe_mode
Diffstat (limited to 'examples/detect.php')
-rw-r--r--examples/detect.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/detect.php b/examples/detect.php
index 123e496..f745739 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;
}
}