> De : [email protected] [mailto:[email protected]
> Envoyé : vendredi 24 août 2012 09:24
>
> > 1) PHP Errors come with a severity code and a string message. You
> want
> > to handle specific errors in a specific way? You better start writing
> > giant regexes parsing the string messages.
> >
> This is a problem that could also be addressed with the current error
> handling mechanism: that would require that any error comes with some
> unique number for example. Is this possible? Independently of the
> exception vs classical error discussion, that would be amazing.
+1 on error msg numbering. Such an error ID would contain at least two parts,
one identifying the code block the error was generating from ('core' or
extension name), and a number unique in this context. So, each extension writer
could manage its own error numbering space.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php