diff options
-rw-r--r-- | pear/PEAR/Dependency.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pear/PEAR/Dependency.php b/pear/PEAR/Dependency.php index 4db89d2948..38d2eb762e 100644 --- a/pear/PEAR/Dependency.php +++ b/pear/PEAR/Dependency.php @@ -134,11 +134,8 @@ class PEAR_Dependency function checkExtension($name, $req = null, $relation = 'has') { // XXX (ssb): could we avoid loading the extension here? - if (!extension_loaded($name)) { - $dlext = OS_WINDOWS ? '.dll' : '.so'; - if (!@dl($name . $dlext)) { - return "'$name' PHP extension is not installed"; - } + if (!PEAR::loadExtension($name)) { + return "'$name' PHP extension is not installed"; } if ($relation == 'has') { return false; |