Re: Code Modifications Needed for Error Handling
| From: | Sergio Carvalho | Date: | Tue, 31 Aug 2004 10:35:03 +0000 |
| Subject: | Re: Code Modifications Needed for Error Handling | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33104@lists.php.net to get a copy of this message | ||
David Costa wrote:
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Hello Davey, PHP 4 packages are already working in PHP5. I really think that there is too much concern on PHP 5 packages. I agree that a way to port on the fly PHP 4 packages to PHP 5 would be great (specially if PEAR_ErrorStack could be used on both 4 and 5) but I don't think it is something achievable.Very true. Mixed 4/5 environments introduce the drag of checking errors two different ways. PHP4 packages report errors using PEAR_Error(Stack) and PHP5 packages report using PEAR_Exception. The same error never has to be tested twice. The drag is that the developer must remember if he's using a PHP4 or a PHP5 package on a given call. Cheers, Sérgio
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc