Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70520 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94866 invoked from network); 7 Dec 2013 12:57:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2013 12:57:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.45 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.45 mail-oa0-f45.google.com Received: from [209.85.219.45] ([209.85.219.45:62138] helo=mail-oa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/C1-15194-C4B13A25 for ; Sat, 07 Dec 2013 07:57:48 -0500 Received: by mail-oa0-f45.google.com with SMTP id o6so2043993oag.4 for ; Sat, 07 Dec 2013 04:57:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=t/rULK+gGWi9MwKlymYAAaA27ZMiu4BnxjvZJxLTNMk=; b=XGWUkRkZXy4Ac3NdEZ31RQsRFAm2oDzmoEYSTv0X6WAhY7YdE/Ptvgy0rVvxyp4+F7 nvcSLkWFDHzpIczb+C5Su8xBWxnLURkoG8NpidrCFjiiIB1S9wKPg5p07voyb6QknLqm uXRblYaMQ+b3n/2z2GsZdI5J3eRLtF9CkstO8wfwrB3hWreVd6EPBl1fUS2VFNy5z8PN lovns2OsMrLuBZJXJCVR8vNOGaZ67oGrHSzRufaGesZgwxsiddiHDOt8WKBspO7U3hWH YCzqgPRsyVU3NcjfiSwH1YHXRDShrTPRiF2Uglj5P5Du5oageTC4MR9wKW0bgSPuiQ+l H0bQ== MIME-Version: 1.0 X-Received: by 10.182.55.65 with SMTP id q1mr6413443obp.2.1386421065326; Sat, 07 Dec 2013 04:57:45 -0800 (PST) Received: by 10.182.54.112 with HTTP; Sat, 7 Dec 2013 04:57:45 -0800 (PST) Date: Sat, 7 Dec 2013 13:57:45 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=089e015388481ba3f304ecf14f48 Subject: [VOTE] Allowing use of exceptions in the engine From: nikita.ppv@gmail.com (Nikita Popov) --089e015388481ba3f304ecf14f48 Content-Type: text/plain; charset=ISO-8859-1 Hi internals! I opened the vote on the "Exceptions in the engine" RFC: https://wiki.php.net/rfc/engine_exceptions#vote The vote has three options, "Yes", "No" and "Yes, without E_RECOVERABLE_ERROR changes". The last option is a version of the proposal without BC issues. Some further notes: * I will not be including something like BaseException. Introducing it for this purpose seems like bad design and will be very hard to get rid of in the future. As the proposal (without recoverable errors) does not break BC [1] even without it, I don't see a reason to introduce it. * Some people suggest to use different subclasses of EngineException for different error types. I'm not against that, but I think it's okay to do that in a separate proposal, if someone can come up with a good selection of exception classes. It's much easier (and does not break BC) to add subclassing later, than to add suboptimal subclass types now and try to fix something like the SPL exception mess later. * The suggested uncaught exception error message change is just a bit of cosmetics (and not directly related to this proposal), so I'd like to do that separately. And regarding the vote: If you are in favor of the proposal in general, but want to have it in PHP 6 rather than PHP 5.6, then vote "No" here. If it fails now, someone can revive this once the time for PHP 6 has come. Thanks, Nikita [1]: We don't have a formal definition for this, but it seems to be general consensus that relaxing error conditions does not constitute a backwards compatibility break. --089e015388481ba3f304ecf14f48--