RE: [PEAR-DEV] db abstraction: pass by reference versus return

From: Date: Fri, 12 Jul 2002 09:07:05 +0000
Subject: RE: [PEAR-DEV] db abstraction: pass by reference versus return
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7681@lists.php.net to get a copy of this message
> > By the way - I do not like to check if return value is error object, > e.g. instead of checking if $dbh->query() every time, I use both: > > set_error_handler('php_handle_error'); > PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'pear_handle_error'); > > The code is then clearer. I hope this would work with MDB (I've seen you > are > using raiseError(), then it should work). > I have not messed with the PEAR error handling at all, but MDB uses it :-) And its all modelled after PEAR DB. So yes I would assume it should work out of the box. Best regards, Lukas

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