Re: idea: letting the line number and file name be set via user_error

From: Date: Tue, 07 May 2013 20:21:49 +0000
Subject: Re: idea: letting the line number and file name be set via user_error
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Tue, May 7, 2013 at 3:14 PM, Stas Malyshev <[email protected]>wrote:

> Hi!
>
> > If you do user_error('whatever') it'll show, as the line number for that
> > error, the line number on which that user_error() call is made.  It'd be
> > nice if you could control the line number and file name that was
> displayed.
> > eg.
>
> If you need additional information to accompany the error, why not add
> it to the "whatever" string? This way you can control whatever is
> displayed.
>
>
So the error messages your library produces have the same consistent look
and feel to them that PHP's errors do?

Besides, keeping in mind the KISS "keep it simple stupid" principal
gratuitous information should probably be hidden away. I mean if it's not
going to help anyone then the only thing left for it to do is potentially
confuse people. And why risk that?


Thread (20 messages)

« previous php.internals (#67359) next »