Re: Re: RFC: Replacing errors with Exceptions

From: Date: Wed, 29 Jul 2009 21:46:00 +0000
Subject: Re: Re: RFC: Replacing errors with Exceptions
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-45131@lists.php.net to get a copy of this message
Le Fri, 24 Jul 2009 15:23:21 +0200, user a écrit :
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
I'm agree for replacing error by exception. Even if this not a good idea, i think there is a big problem with error gesture into php. Exemple : http://fr3.php.net/manual/en/function.simplexml-load-string.php
A couple of people have used SimpleXML as an example of how _PHP_ errors are broken. The only thing that makes SimpleXML nice is the utter horror that the other XML parsing extensions give you. SimpleXML error handling and behavior in general is confusing. So, if you want to have a discussion about how SimpleXML is messed up, have it. But, don't lump the whole language in with it. Brian. -------- http://brian.moonspot.net/

« previous php.internals (#45131) next »