Re: Short question: PEAR_ERROR_EXCEPTION
| From: | till | Date: | Sat, 21 Jul 2007 19:51:33 +0000 |
| Subject: | Re: Short question: PEAR_ERROR_EXCEPTION | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-47662@lists.php.net to get a copy of this message | ||
On 7/21/07, David Coallier <davidc@php.net> wrote:
On 7/21/07, till <klimpong@gmail.com> wrote: On 7/21/07, Martin Jansen <martin@divbyzero.net> wrote:Of course - just saying, I think this is the #1 error/warning though which I get with older PHP4-compatible code. Aside from that, all (of MDB2) has worked beautifully so far for me. TillOn Sat Jul 21, 2007 at 09:1546PM +0200, Christian Weiske wrote:There is also one about the "isError" method being used static. ;-) Till -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php PHP4 and PHP5. :)I suppose that he was referring to the warning that is emitted by $obj = new PEAR_Error($message, $code, PEAR_ERROR_EXCEPTION);All the PEAR packages (for example MDB2) are still using PEAR::raiseError(). Because of that a get PHP warning triggered by PEAR when an error occurs. I suppose there's no work around for that?Use the following line at the beginning of your code: PEAR::setErrorHandling(PEAR_ERROR_EXCEPTION);