PHP5 - Exceptions and the future of PEAR_Error
| From: | Thorsten Suckow-Homberg | Date: | Mon, 26 Apr 2004 16:46:05 +0000 |
| Subject: | PHP5 - Exceptions and the future of PEAR_Error | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-12129@lists.php.net to get a copy of this message | ||
Hey there,
with the RC2 of PHP5 I started migrating my Application from PHP4 to PHP5.
Coming to the point of using exceptions, I am curious of how PEAR will
migrate the PEAR_error-Concept to it - the thousands of
"if(PEAR::isError($yadayada)"
will hopefully become useless now ;)
Is there any discussion going on under the devs?
Whats the best way to migrate my application regarding the
catch-throw-clause?
Should
try{
}
catch(PEAR_Exception $exception){
}
work?
Hints please ;)
Kind regards
Thorsten