From 3e56af98e0718bc3c524e56d4b84eebadd108f45 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Fri, 27 Feb 2004 02:24:06 +0000 Subject: [PATCH] get_class -> is_a --- pear/PEAR/Autoloader.php | 2 +- pear/PEAR/Command.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pear/PEAR/Autoloader.php b/pear/PEAR/Autoloader.php index 9b1a5c32ab..09e8736d84 100644 --- a/pear/PEAR/Autoloader.php +++ b/pear/PEAR/Autoloader.php @@ -162,7 +162,7 @@ class PEAR_Autoloader extends PEAR $classname = strtolower($classname); reset($this->_method_map); while (list($method, $obj) = each($this->_method_map)) { - if (get_class($obj) == $classname) { + if (is_a($obj, $classname)) { unset($this->_method_map[$method]); $ok = true; } diff --git a/pear/PEAR/Command.php b/pear/PEAR/Command.php index cd13a7d460..518bd12eba 100644 --- a/pear/PEAR/Command.php +++ b/pear/PEAR/Command.php @@ -160,7 +160,7 @@ class PEAR_Command function &setFrontendClass($uiclass) { if (is_object($GLOBALS['_PEAR_Command_uiobject']) && - strtolower($uiclass) == get_class($GLOBALS['_PEAR_Command_uiobject'])) { + is_a($GLOBALS['_PEAR_Command_uiobject'], $uiclass)) { return $GLOBALS['_PEAR_Command_uiobject']; } if (!class_exists($uiclass)) { -- 2.50.1