cvs: pear /XML_Util Util.php

[email protected] ("Chuck Burgess") Sun, 04 May 2008 15:17:51 -0000
Newsgroups php.pear.cvs
Message-ID <cvsashnazg1209914271@cvsserver>
ashnazg		Sun May  4 15:17:51 2008 UTC

  Modified files:              
    /pear/XML_Util	Util.php 
  Log:
  the code example in the isValidName() docblock shows a non-existent isError() method call... change this to use is_a() to see if isValidName() returned a PEAR_Error object
  
http://cvs.php.net/viewvc.cgi/pear/XML_Util/Util.php?r1=1.29&r2=1.30&diff_format=u
Index: pear/XML_Util/Util.php
diff -u pear/XML_Util/Util.php:1.29 pear/XML_Util/Util.php:1.30
--- pear/XML_Util/Util.php:1.29	Sat May  3 01:43:32 2008
+++ pear/XML_Util/Util.php	Sun May  4 15:17:51 2008
@@ -727,7 +727,7 @@
     *
     * // verify tag name
     * $result = XML_Util::isValidName("invalidTag?");
-    * if (XML_Util::isError($result)) {
+    * if (is_a($result, 'PEAR_Error')) {
     *    print "Invalid XML name: " . $result->getMessage();
     * }
     * </code>
@@ -770,4 +770,4 @@
         return PEAR::raiseError($msg, $code);
     }
 }
-?>
\ No newline at end of file
+?>