Re: expect()/popExpect()

From: Date: Fri, 01 Oct 2004 17:20:56 +0000
Subject: Re: expect()/popExpect()
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33596@lists.php.net to get a copy of this message
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. Greg

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