Re: [PATCH] Redirect on Error

From: Date: Thu, 28 Nov 2002 18:18:33 +0000
Subject: Re: [PATCH] Redirect on Error
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-91880@lists.php.net to get a copy of this message
"Ilia A." <ilia@prohost.org> wrote... : > On November 28, 2002 12:56 pm, Maxim Maletsky wrote: > > Shall we still consider introducing error codes to PHP? IMO, it does not > > represent any enormous maintenance increase while has some positive > > points. > > Do you have an effecient manner in which to implement the introduction of > error codes? I believe that it could be done gradually like the way docref was introduced. It might also be an alternative function of something similar. One important things will remain is the naming convention for errors - allocating the numbers in a logical ways. In my first thoughts I'd propose this format: PHP1234 where 12 means the extension and 34 is the error. This way, one could check things by parsing error strings or by calling some built in function which returns the extension name for the error, for instance. I think there could be many utilities for it. -- Maxim Maletsky maxim@php.net

« previous php.dev (#91880) next »