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. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php