Re: PEAR::setErrorHandling conflicts with nextId() ?

From: Date: Thu, 30 Aug 2001 19:50:53 +0000
Subject: Re: PEAR::setErrorHandling conflicts with nextId() ?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1727@lists.php.net to get a copy of this message
On Thursday 30 August 2001 19:10, Piotr Roszatycki wrote: > On Thu, 30 Aug 2001, Tomas V.V.Cox wrote: > > > I've found $dbh->nextId() breaks setErrorHandling(). > > > This script should print error, but it doesn't. > > > > > > $id = $dbh->nextId("service"); > > > > There were a bug here. It's corrected now in the last CVS version > > of PEAR.php. Please try again with it. > > I've updated PEAR from CVS and still $dbh->nextId disables error > handling. I use PostgreSQL database and AFAIK this method pushes and > pops error handling. Maybe the error is in pgsql.php file? Umm, I was trying: $db = DB::connect(); $db->setErrorHandling(PEAR_ERROR_DIE); $db->nextID('non_existant', false); and worked fine. But with PEAR::setErrorHandling not. I've found the bug now. Please update again PEAR.php. Thanks, Tomas V.V.Cox

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