Re: [PATCH] Redirect on Error
| From: | Stig S. Bakken | Date: | Sat, 30 Nov 2002 10:43:24 +0000 |
| Subject: | Re: [PATCH] Redirect on Error | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91943@lists.php.net to get a copy of this message | ||
On Wed, 27 Nov 2002, Sascha Schumann wrote:
> On Wed, 27 Nov 2002, Stig S. Bakken wrote:
>
> > On Tue, 2002-11-26 at 14:57, Andrei Zmievski wrote:
> > > On Tue, 26 Nov 2002, Edin Kadribasic wrote:
> > > > On Tue, 26 Nov 2002, Maxim Maletsky wrote:
> > > > > I rather propose. And, it seems to interest many on the list.
> > > >
> > > > Don't forget that there seem to be many who strongly opose your
> > > > suggestion.
> > >
> > > Myself included.
> >
> > -1 on localized error messages
> > +1 on errno-style error codes
>
> -1 on errno-style error codes. They are not versatile
> enough or easy to manage.
They are a lot more versatile and manageable than having to use
substring/regexp matching on human-readable text.
What I'm going for here is a way for scripts to detect _why_ fopen fails,
other than checking the error message. If we do get localized error
messages at one point, this is even more important. Do you have any other
suggestions?
- Stig