Re: PEAR_ErrorStack renaming question
| From: | Bertrand Mansion | Date: | Thu, 02 Sep 2004 06:55:58 +0000 |
| Subject: | Re: PEAR_ErrorStack renaming question | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33177@lists.php.net to get a copy of this message | ||
Greg Beaver wrote:
>By this I mean that PEAR_Warning would have a method that says "start
>noticing non-fatal errors" and from this point on, any warning that is
>registered through its monitoring of PEAR_ErrorStack *and* the use of
>PEAR_Warning::add() (name is negotiable) would be simply placed into a
>holding array. When the method that says "stop noticing non-fatal
>errors" is called, a PEAR_Exception can easily be created with the
>PEAR_Warning as a cause, and all of the warnings would be clearly and
>easily delineated by where they came from. This would ultimately make
>PEAR_ErrorStack only useful in the transition from php4 to php5, and
>that was its original intent anyways :).
>
>In any case, I would appreciate it if people hold off on the standard
>positive and negative critiques until they see the code I'm talking
>about, it should be very short code.
I will try to work on that as well this afternoon if I get a chance.
Bertrand Mansion
Mamasam