cvs: peardoc /en/core/pear/pear-errorstack intro.xml

From: Date: Mon, 24 May 2004 19:42:53 +0000
Subject: cvs: peardoc /en/core/pear/pear-errorstack intro.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4090@lists.php.net to get a copy of this message
arnaud Mon May 24 15:42:53 2004 EDT Modified files: /peardoc/en/core/pear/pear-errorstack intro.xml Log: * improve first example a bit http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/intro.xml?r1=1.4&r2=1.5&ty=u Index: peardoc/en/core/pear/pear-errorstack/intro.xml diff -u peardoc/en/core/pear/pear-errorstack/intro.xml:1.4 peardoc/en/core/pear/pear-errorstack/intro.xml:1.5 --- peardoc/en/core/pear/pear-errorstack/intro.xml:1.4 Sun May 23 11:26:48 2004 +++ peardoc/en/core/pear/pear-errorstack/intro.xml Mon May 24 15:42:53 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="core.pear.pear-errorstack.intro"> <refnamediv> <refname>Introduction to using PEAR_ErrorStack for advanced error handling</refname> @@ -152,8 +152,8 @@ // Note that $ret need not be checked for any error condition - errors are // totally separate from code -if (count($errs = $dbstack->getErrors())) { - +if ($dbstack->hasErrors()) { + var_dump($dbstack->getErrors(); } // use the callback

« previous php.pear.doc (#4090) next »