Re: Re: error handling [was: ugly cvs subject]

From: Date: Mon, 02 Dec 2002 19:27:45 +0000
Subject: Re: Re: error handling [was: ugly cvs subject]
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969350122@lists.php.net to get a copy of this message
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.

« previous php.doc (#969350122) next »