Re: Short question: PEAR_ERROR_EXCEPTION
| From: | Christian Weiske | Date: | Sat, 21 Jul 2007 19:15:46 +0000 |
| Subject: | Re: Short question: PEAR_ERROR_EXCEPTION | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-47659@lists.php.net to get a copy of this message | ||
> 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);
--
Regards/Mit freundlichen Grüßen
Christian Weiske