Index: PHP/Shell.php
===================================================================
RCS file: /repository/pear/PHP_Shell/PHP/Shell.php,v
retrieving revision 1.2
diff -u -r1.2 Shell.php
--- PHP/Shell.php	22 Jul 2006 15:48:16 -0000	1.2
+++ PHP/Shell.php	18 Oct 2006 20:29:15 -0000
@@ -342,7 +342,7 @@
 
                             /* obj */
                         
-                            if (!method_exists($object, $method)) {
+                            if (!is_callable($object, $method)) {
                                 throw new Exception(sprintf("Variable %s (Class '%s') doesn't have a method named '%s'", 
                                     $objname, get_class($object), $method));
                             }
@@ -376,7 +376,7 @@
 
                         /* obj */
                         
-                        if (!method_exists($object, $method)) {
+                        if (!is_callable($object, $method)) {
                             throw new Exception(sprintf("Variable %s (Class '%s') doesn't have a method named '%s'", 
                                 $objname, get_class($object), $method));
                         }
@@ -420,7 +420,7 @@
 
                         /* obj */
                         
-                        if (!method_exists($object, $method)) {
+                        if (!is_callable($object, $method)) {
                             throw new Exception(sprintf("Variable %s (Class '%s') doesn't have a method named '%s'", 
                                 $objname, get_class($object), $method));
                         }
Index: PHP/Shell/Options.php
===================================================================
RCS file: /repository/pear/PHP_Shell/PHP/Shell/Options.php,v
retrieving revision 1.1
diff -u -r1.1 Options.php
--- PHP/Shell/Options.php	30 May 2006 15:40:30 -0000	1.1
+++ PHP/Shell/Options.php	18 Oct 2006 20:29:15 -0000
@@ -43,7 +43,7 @@
     * @param string (unused)
     */ 
     public function registerOption($option, $obj, $setor, $getor = null) {
-        if (!method_exists($obj, $setor)) {
+        if (!is_callable($obj, $setor)) {
             throw new Exception(sprintf("setor %s doesn't exist on class %s", $setor, get_class($obj)));
         }
 
