summaryrefslogtreecommitdiffstats
path: root/examples/server/setup.php
diff options
context:
space:
mode:
authorWill Norris <will@willnorris.com>2012-01-02 14:25:53 -0800
committerWill Norris <will@willnorris.com>2012-01-02 14:25:53 -0800
commitd4e5efe47228c87fcc0933f7431bd6ac4498b340 (patch)
tree75d4f732071af2f6fe374a89fd63eb9d1c968985 /examples/server/setup.php
parent53c793d795724ca042a82351e0366cec805cc167 (diff)
parent1787658d1572edd3b0cdef0bd8c307e7b37384ea (diff)
downloadphp-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/server/setup.php')
-rw-r--r--examples/server/setup.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/server/setup.php b/examples/server/setup.php
index e25ef34..0a42bff 100644
--- a/examples/server/setup.php
+++ b/examples/server/setup.php
@@ -176,19 +176,19 @@ function render_form() {
$sqlite_found = false;
if (extension_loaded('sqlite') ||
- @dl('sqlite.' . PHP_SHLIB_SUFFIX)) {
+ (function_exists('dl') && @dl('sqlite.' . PHP_SHLIB_SUFFIX))) {
$sqlite_found = true;
}
$mysql_found = false;
if (extension_loaded('mysql') ||
- @dl('mysql.' . PHP_SHLIB_SUFFIX)) {
+ (function_exists('dl') && @dl('mysql.' . PHP_SHLIB_SUFFIX))) {
$mysql_found = true;
}
$pgsql_found = false;
if (extension_loaded('pgsql') ||
- @dl('pgsql.' . PHP_SHLIB_SUFFIX)) {
+ (function_exists('dl') && @dl('pgsql.' . PHP_SHLIB_SUFFIX))) {
$pgsql_found = true;
}