Re: [PHP-DOC] Re: error handling [was: ugly cvs subject] From: Philip Olson (philip <email protected>)
Date: 12/02/02

On Mon, 2 Dec 2002, Gabor Hojtsy wrote:

> > die("foo");
> >
> > vs.
> >
> > trigger_error("foo", E_USER_ERROR);
> >
> > is IMO a complication.
> >
> > > If we leave errors unhandled in examples, that is simple,
> > > but harms the developers. I do think, that using too much
> > > error handling code in examples hurts, but none is not
> > > better...
> >
> > 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).

-1 on this.

-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php