]> granicus.if.org Git - php/commitdiff
get_class -> is_a
authorGreg Beaver <cellog@php.net>
Fri, 27 Feb 2004 02:24:06 +0000 (02:24 +0000)
committerGreg Beaver <cellog@php.net>
Fri, 27 Feb 2004 02:24:06 +0000 (02:24 +0000)
pear/PEAR/Autoloader.php
pear/PEAR/Command.php

index 9b1a5c32abf8e11e61ce27ee8cb4d48c942d0d83..09e8736d844aebc68492f790794336f63237d37a 100644 (file)
@@ -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;
             }
index cd13a7d46074794a97105bd7ec84062f69bd7c0c..518bd12eba3b3b5679a1268ce8d787a845d00028 100644 (file)
@@ -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)) {