php-developer-list | 2002112

Re: [PHP-DEV] [PATCH] Redirect on Error From: Stig S. Bakken (ssb <email protected>)
Date: 11/30/02

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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php