Re: [PATCH] Redirect on Error
| From: | Derick Rethans | Date: | Tue, 26 Nov 2002 10:55:52 +0000 |
| Subject: | Re: [PATCH] Redirect on Error | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91698@lists.php.net to get a copy of this message | ||
On Tue, 26 Nov 2002, Maxim Maletsky wrote:
> Derick Rethans <derick@php.net> wrote... :
>
> > On Tue, 26 Nov 2002, Maxim Maletsky wrote:
> >
> > > This can be easily avoided. When I have to report an Oracle error in
> > > Italian on an English page, I simply type the error code. We need to
> > > introduce error codes in PHP, that would really solve the trouble.
> >
> > and it would make us enter the maintainers-hell....
>
> It's not really that much of hell. just adding an English comment like:
>
> /* Fail if this data no good */
> php_error(354, bad_data);
Huh, what is code 354? What is the exact message? Comments dont help,
and then you need to update the message at two locations! Woohoo! even
more work.
>
> Can save the whole thing. Naming conventions and coding style used
> commonly can be the solution.
Yeah, and you just tell us what to do.
Derick
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------