From 80361edcb65840d41bc6cb0b09c92cd9d1f37f0c Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Mon, 17 Jun 2002 13:50:33 +0000 Subject: [PATCH] Use the new PEAR::loadExtension() in checkExtension() instead of the "hack" --- pear/PEAR/Dependency.php | 7 ++----- 1 file 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; -- 2.50.1