Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86638 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28639 invoked from network); 14 Jun 2015 16:31:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jun 2015 16:31:49 -0000 Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:59919] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/00-27999-27CAD755 for ; Sun, 14 Jun 2015 12:31:47 -0400 Received: by h1123647.serverkompetenz.net (Postfix, from userid 1006) id 72DAC23D629F; Sun, 14 Jun 2015 18:31:43 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on h1123647.serverkompetenz.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.5 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE,URIBL_BLOCKED autolearn=unavailable version=3.3.2 Received: from w530phpdev (p579F39CB.dip0.t-ipconnect.de [87.159.57.203]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by h1123647.serverkompetenz.net (Postfix) with ESMTPSA id 424B023D615B; Sun, 14 Jun 2015 18:31:38 +0200 (CEST) To: "'Dmitry Stogov'" , "'Levi Morrison'" , "'Aaron Piotrowski'" , "'Nikita Popov'" Cc: "'internals'" , "'Anatol Belski'" , "'Kalle Sommer Nielsen'" References: <971AB39D-1E20-43E8-9CF1-A7F67E3C14C3@icicle.io> <556363D3.1040902@gmail.com> <12C3389A-AFF5-42CA-8190-E4227309DAED@icicle.io> In-Reply-To: Date: Sun, 14 Jun 2015 18:31:35 +0200 Message-ID: <016201d0a6bf$96e37dc0$c4aa7940$@belski.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0163_01D0A6D0.5A6EE5D0" X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQFtSLKjM4Kf9ceVOz7o+CSYMVJiZgIhwnePAYrvRlYBpwkcHAJFBRC9Ao7iPHueIasGQA== Content-Language: en-us Subject: RE: [PHP-DEV] [RFC] Throwable Interface From: anatol.php@belski.net ("Anatol Belski") ------=_NextPart_000_0163_01D0A6D0.5A6EE5D0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Dmitry, =20 I would go by accepting this. Furthermore =E2=80=93 if you feel that the = implementation is stable enough and does not BC, I would suggest to have = it already in the alpha2. =20 As there seems to be at all no resistance in the votes (no even single = =E2=80=9Cno=E2=80=9D voter yet), nor strong objection here on the = lists. The minimal voting period is 1 week, so theoretically if it were = ended on Wed (the voting RFC doesn=E2=80=99t disallow this) =E2=80=93 = there were still some time to do extensive testing and fixes. Alpha2 is = the time where a) a lot of users will be able to test it and b) it still = can be reverted in the worst case. =20 What do you think? =20 Regards =20 Anatol =20 From: Dmitry Stogov [mailto:dmitry@zend.com]=20 Sent: Wednesday, June 10, 2015 9:37 AM To: Levi Morrison; Aaron Piotrowski; Nikita Popov Cc: internals; Anatol Belski; Kalle Sommer Nielsen Subject: Re: [PHP-DEV] [RFC] Throwable Interface =20 =20 =20 On Tue, Jun 9, 2015 at 9:13 PM, Levi Morrison > wrote: On Tue, Jun 9, 2015 at 11:40 AM, Aaron Piotrowski > wrote: > Does anyone have any questions, comments, or concerns about the = Throwable Interface RFC? > > http://wiki.php.net/rfc/throwable-interface > > The proposed exception hierarchy: > > interface Throwable > =E2=8A=A2 Exception implements Throwable > =E2=88=9F Error implements Throwable (replaces = EngineException) > =E2=8A=A2 TypeError (replaces TypeException) > =E2=88=9F ParseError (replaces ParseException) > > I=E2=80=99d like to complete a vote before too many alpha releases are = made. > > I=E2=80=99ll be happy to resolve the merge conflicts in the PR if the = vote passes. My only objections have already been raised, but I'll reiterate them = briefly: 1. Having both Error and Exception makes little sense, especially since we have historically used error to refer to an error that wasn't an exception (something that triggered the error handler). 2. The name "Error" is going to have a fairly high collision rate with user code. =20 I also like EngineException more than Error. =20 3. I think they should all use Exception as the root instead having a new root with multiple children (and yes, I am aware of the impact of this, and it has already been discussed on this list). =20 This done on purpose. To prevent catching of new exceptions by old PHP = code. If we won't accept this now (before 7.0 release), it would make more = troubles in the future. I didn't make deep code review, and don't know all possible = consequences. Anyway, I would make a chance to accept this now or never. RM, your thoughts? In case we decide to vote for this RFC, I'll make code review and will = help with possible problems. =20 Thanks. Dmitry. =20 =20 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php =20 ------=_NextPart_000_0163_01D0A6D0.5A6EE5D0--