On Fri, Jul 24, 2009 at 3:23 PM, <u...@domain.invalid> wrote:
> I published a (work in progress) RFC today about replacing certain
> errors with exceptions. I know that there already was something similiar
> on the php6dev blog, but this is not completly the same, so awating your
> comments:
>
> http://wiki.php.net/rfc/errors_as_exceptions

Maybe I'm missing the point somewhere, but isn't this as simple as
installing an error-handler with set_error_handler? You can install a
global handler, that throws ErrorException, if you want that.

The example mentioned in the rfc - simplexml_load_file - is a bit
special. If you load an invalid file, you may get more than one error.
If these were converted into exceptions, you would miss all but the
first.

> u...@domain.invalid

whois

--
troels

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

Reply via email to