php-developer-list | 2002112
Date: 11/30/02
- Next message: Gabor Hojtsy: "[PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] Re: Modules/Extensions not in 4.3"
- Previous message: Stig S. Bakken: "Re: [PHP-DEV] [PATCH] Redirect on Error"
- In reply to: Sascha Schumann: "Re: [PHP-DEV] [PATCH] Redirect on Error"
- Next in thread: Maxim Maletsky: "Re: [PHP-DEV] [PATCH] Redirect on Error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 12:00 30.11.2002, Sascha Schumann wrote:
> > > -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?
>
> In order to succeed over a long period of time, error tokens
> need to be versatile enough to satisfy this set of
> requirements.
>
> - the conflict potential should be low
> (can conflicts between independently released modules be
> avoided and if yes, how)
>
> - they should be easily recognizable by humans and automatons
> (so that e.g. bugs.php.net can easily insert the English
> error message for any given error code)
>
> - management overhead should be as low as possible
> (do we need a central registry and to what extent)
>
> Could you explain how you think that errno-style codes
> achieve these tasks?
>
> - Sascha
+1
If you write a README.ERROR_CODES and we can get a consensus
on it i will commit the functions needed to main.c as already posed.
marcus
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Gabor Hojtsy: "[PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] Re: Modules/Extensions not in 4.3"
- Previous message: Stig S. Bakken: "Re: [PHP-DEV] [PATCH] Redirect on Error"
- In reply to: Sascha Schumann: "Re: [PHP-DEV] [PATCH] Redirect on Error"
- Next in thread: Maxim Maletsky: "Re: [PHP-DEV] [PATCH] Redirect on Error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

