Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45131 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9060 invoked from network); 29 Jul 2009 21:46:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jul 2009 21:46:06 -0000 Authentication-Results: pb1.pair.com header.from=brian@moonspot.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=brian@moonspot.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain moonspot.net from 72.5.90.27 cause and error) X-PHP-List-Original-Sender: brian@moonspot.net X-Host-Fingerprint: 72.5.90.27 smtp.dealnews.com Linux 2.5 (sometimes 2.4) (4) Received: from [72.5.90.27] ([72.5.90.27:58265] helo=smtp.dealnews.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/1A-25843-C13C07A4 for ; Wed, 29 Jul 2009 17:46:05 -0400 Received: (qmail 30902 invoked from network); 29 Jul 2009 21:46:00 -0000 Received: from unknown (HELO mail.dealnews.com) (10.1.10.7) by -H with ESMTPS (DHE-RSA-AES256-SHA encrypted); 29 Jul 2009 21:46:00 -0000 Received: (qmail 1988 invoked from network); 29 Jul 2009 21:46:01 -0000 Received: from h105.248.18.98.static.ip.windstream.net (HELO ?10.1.100.100?) (brianm@98.18.248.105) by -H with ESMTPA; 29 Jul 2009 21:46:01 -0000 Message-ID: <4A70C318.3070002@moonspot.net> Date: Wed, 29 Jul 2009 16:46:00 -0500 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Alban CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Re: RFC: Replacing errors with Exceptions From: brian@moonspot.net (Brian Moon) > 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/