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

From: Date: Fri, 31 Aug 2001 12:20:32 +0000
Subject: Re: PEAR::setErrorHandling conflicts with nextId() ?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1731@lists.php.net to get a copy of this message
[Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>] > On Thu, 30 Aug 2001, Tomas Von Veschler Cox wrote: > > $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. > > Ok, now it's working if I'm using PEAR::setErrorHandling(). > > What doesn't mean 'invalid error callback in > /usr/local/share/pear/PEAR.php on line 262'? This message appears if I use > $dbh->setErrorHandling(PEAR_ERROR_CALLBACK, "db_error_handler"); Uhm, is there a function called db_error_handler? :-) - Stig -- Stig Sæther Bakken <ssb@alltheweb.com> Fast Search & Transfer ASA, Trondheim, Norway

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