Re: Re: error handling [was: ugly cvs subject]
| From: | Derick Rethans | Date: | Mon, 02 Dec 2002 19:28:04 +0000 |
| Subject: | Re: Re: error handling [was: ugly cvs subject] | ||
| References: | 1 2 3 4 5 6 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969350121@lists.php.net to get a copy of this message | ||
On Mon, 2 Dec 2002, Gabor Hojtsy wrote:
> > right, die() works fine for that.
>
> OK, let die() stay there. BUT big notes should be added to the
> die() docs then about unsafe usage (to print out error messages
> to users). So if someone is interested in what die() does, he
> get some explanation on why he should *not* use it (despite the
> fact that it is used in examples).
>
> BTW I was quite surprised from the first moment I have used
> user_error() / trigger_error() that its default is *not*
> E_USER_ERROR. I expected it to default to E_USER_ERROR, because
>
> 1. It's name is ..._error()
> 2. Generally all errors handled with these functions should stop
> the script run anyway IMHO...
right, of course.
Derick
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------