Re: error reporting for PHP5
| From: | Michael Sims | Date: | Mon, 25 Nov 2002 06:36:00 +0000 |
| Subject: | Re: error reporting for PHP5 | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91513@lists.php.net to get a copy of this message | ||
On Mon, 25 Nov 2002 01:04:00 -0500, you wrote:
>As for custom error codes, I'm not sure how these would be handled in
>PHP... In fact, I'm not entirely convince that we really should have
>this sort of thing (i.e. trigger_error()). In my experience (and maybe
>I'm unique) I have never actually used trigger_error() in any sort of
>meaniful way. Rather, I simply deal with the error myself.
Sorry to jump in the middle of a conversation, but I just wanted to
say that I personally use trigger_error() quite often. The site I
maintain has a nice custom error handler which logs the error and
emails the admins the error details + var dumps, etc. I often use
trigger_error() in my code because it allows me to treat certain
situations the same as a PHP generated error. Of course, I suppose I
could just call my custom error handler directly but that seems less
elegant...just MHO.