Re: PEAR::expectError

From: Date: Tue, 14 Aug 2001 15:27:30 +0000
Subject: Re: PEAR::expectError
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1479@lists.php.net to get a copy of this message
Quoting "Tomas V.V.Cox" <cox@idecnet.com>: > // push a new mode > $db->setErrorHandling($mode); > $err = $db->query(); > // pop if no args > $db->setErrorHandling(); That's rather unclear; push/pop is much easier to read, because you know whether an error handler is being added or removed. If you just saw the bottom of the above code, you wouldn't know what to think of it. -chuck -- Charles Hagenbuch, <chuck@horde.org> Some fallen angels have their good reasons.

« previous php.pear.dev (#1479) next »