diff options
author | Brion Vibber <brion@pobox.com> | 2009-10-12 21:01:34 +0000 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2009-10-12 21:01:34 +0000 |
commit | 18df82ba2302d5b72bc42f4d3296d6fff7d16341 (patch) | |
tree | ce2f955ff860b8d7355d64391d68a0f955067ec9 /extlib/Auth | |
parent | 131292472c4bca7e99ee821ae62853f36f4c7bef (diff) | |
parent | 2b6dfbdf2b9df0992018f8df1f54b4cf16185599 (diff) |
Merge branch '0.8.x' of git://gitorious.org/~brion/statusnet/brion-fixes into 0.8.x
Diffstat (limited to 'extlib/Auth')
-rw-r--r-- | extlib/Auth/OpenID/BigMath.php | 2 | ||||
-rw-r--r-- | extlib/Auth/Yadis/XML.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extlib/Auth/OpenID/BigMath.php b/extlib/Auth/OpenID/BigMath.php index 45104947d..b5fc627a0 100644 --- a/extlib/Auth/OpenID/BigMath.php +++ b/extlib/Auth/OpenID/BigMath.php @@ -376,7 +376,7 @@ function Auth_OpenID_detectMathLibrary($exts) // Try to load dynamic modules. if (!$loaded) { foreach ($extension['modules'] as $module) { - if (@dl($module . "." . PHP_SHLIB_SUFFIX)) { + if (function_exists('dl') && ini_get('enable_dl') && !ini_get('safe_mode') && @dl($module . "." . PHP_SHLIB_SUFFIX)) { $loaded = true; break; } diff --git a/extlib/Auth/Yadis/XML.php b/extlib/Auth/Yadis/XML.php index 4854f12bb..7232d6cbd 100644 --- a/extlib/Auth/Yadis/XML.php +++ b/extlib/Auth/Yadis/XML.php @@ -349,7 +349,7 @@ function &Auth_Yadis_getXMLParser() foreach ($extensions as $name => $params) { if (!extension_loaded($name)) { foreach ($params['libname'] as $libname) { - if (@dl($libname)) { + if (function_exists('dl') && ini_get('enable_dl') && !ini_get('safe_mode') && @dl($libname)) { $classname = $params['classname']; } } |