Re: PHP5: PEAR Error Handling
| From: | Tobias Schlitt | Date: | Wed, 25 Feb 2004 18:34:00 +0000 |
| Subject: | Re: PHP5: PEAR Error Handling | ||
| References: | 1 2 | Groups: | php.pear.core |
| Request: | Send a blank email to pear-core+get-123@lists.php.net to get a copy of this message | ||
Pierre-Alain Joye wrote:
I don't know, if this has been discussed befor here, but I guess this is one of the urgent things to happen. As everyone knows, PEAR_Error has some problems and PHP 5 brings exceptions. Both should be handled und 1 hat IMHO. Gerg built an advanced error handling which looks IMHO pretty usefull for this case.Which problems has PEAR_Error? Or do you mean some missing features? Both. I guess, Greg summarized that in his recent email very well.
What's the relation between exceptions and errors? <snip what="Definition" topic="Exception">An error condition that changes the normal flow of control <http://dict.die.net/flow%20of%20control/> in a program. An exception may be generated ("raised") by hardware <http://dict.die.net/hardware/> or software <http://dict.die.net/software/>. Hardware exceptions include reset <http://dict.die.net/reset/>, interrupt <http://dict.die.net/interrupt/> or a signal from a memory management <http://dict.die.net/memory%20management%20unit/> unit <http://dict.die.net/memory%20management%20unit/>. Exceptions may be generated by the arithmetic logic <http://dict.die.net/arithmetic%20logic%20unit/> unit <http://dict.die.net/arithmetic%20logic%20unit/> or floating-point unit <http://dict.die.net/floating-point%20unit/> for numerical errors such as divide by zero, overflow <http://dict.die.net/overflow/> or underflow <http://dict.die.net/underflow/> or instruction <http://dict.die.net/instruction%20decoding/> decoding <http://dict.die.net/instruction%20decoding/> errors such as privileged, reserved, trap <http://dict.die.net/trap/> or undefined instructions. Software exceptions are even more varied and the term could be applied to any kind of error checking which alters the normal behaviour of the program. </snip>
Regards, Toby -- Tobias Schlitt a passion for php http://www.schlitt.infoI guess this has been discussed before, but was there a fixed solution?No. And nothing will change before a real php5, which will certainly be php 5.1 I guess we do not share a common opinion on this topic. In my idea when PHP5 is ready to use we at least have a solution for the problems.