Re: expect()/popExpect()

From: Date: Fri, 01 Oct 2004 17:32:35 +0000
Subject: Re: expect()/popExpect()
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33598@lists.php.net to get a copy of this message
Greg Beaver wrote:
Lukas Smith wrote:
Hi, I am still extending PEAR in MDB2 for one reason: I need expect() and popExpect() error. Now I heared that using ErrorStack I could get this functionality somehow? But I dont quite see how that would work and looking at the ErrorStack API I dont see what I should do.
ErrorStack relies on callbacks to do this. You simply return PEAR_ERRORSTACK_IGNORE for errors that should be skipped, and one of the other constants to push/log or both. This way, you can filter errors in the callback.
Hmm .. but how if at all does that integrate with PEAR::setErrorHandling()? regards, Lukas

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