diff options
author | Will Norris <will@willnorris.com> | 2012-01-02 14:25:53 -0800 |
---|---|---|
committer | Will Norris <will@willnorris.com> | 2012-01-02 14:25:53 -0800 |
commit | d4e5efe47228c87fcc0933f7431bd6ac4498b340 (patch) | |
tree | 75d4f732071af2f6fe374a89fd63eb9d1c968985 /examples/detect.php | |
parent | 53c793d795724ca042a82351e0366cec805cc167 (diff) | |
parent | 1787658d1572edd3b0cdef0bd8c307e7b37384ea (diff) | |
download | php-openid-d4e5efe47228c87fcc0933f7431bd6ac4498b340.zip php-openid-d4e5efe47228c87fcc0933f7431bd6ac4498b340.tar.gz php-openid-d4e5efe47228c87fcc0933f7431bd6ac4498b340.tar.bz2 |
Merge pull request #47 from starsquare/master
Fix for all dl() cases and short_open_tag
I'm pretty sure we should remove the dl() calls entirely, since it is not longer present in PHP 5.3, but going ahead and merging this as-is for now.
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; } } |