Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84146 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31448 invoked from network); 2 Mar 2015 06:51:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2015 06:51:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.174 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.174 mail-vc0-f174.google.com Received: from [209.85.220.174] ([209.85.220.174:53936] helo=mail-vc0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/E0-25952-27804F45 for ; Mon, 02 Mar 2015 01:51:30 -0500 Received: by mail-vc0-f174.google.com with SMTP id id10so10347391vcb.5 for ; Sun, 01 Mar 2015 22:51:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=mVIaoZffJPbsbTAI/SLSwKcXMLKsr0hToF+XGcl3DQ8=; b=B0tZMUY3ZoqDZ8dmzhCgt1TtKiK5/dr2xNfNWqr1Gwuy/eUuP2WtCsjyCNZbeEcKsW eyO/4gytLeq9woaCRXjJ93AqqCA+/yYc2xetYpZ/4Uxf4ZCwPxlJOwayrX70+YrMCuNF ZXPQhP5bZ98aJ6/8IYAEYIQICUT27XmYqzn57BdsP6N2jlzU4crN+MRuhLK5Z5fQRJzl CA0N8cQV94JO/s2AFyFcc/sgRST5PG5/JDNhsbBCdfMmKIpeLjt7LSp7ogb7CK3nQZLx 3KZps07VRfzblKGPd3BJJqfZPLwAvV3Xk6/n8c4LFxzP2xknke92r8gUYsGCWS4W8mEV 5fSg== X-Gm-Message-State: ALoCoQkX/zIIyMIPhYOFtKEDfe2zea/gzHAOioZ/3D9CqWywzJfOfAg26Lj2DwVvzXwi8M0zsY3GnE657+j/bQuJB88/m4VFHMRvNH5ssExePxSv0shQptQhuM9yHe9L536sYwsjx57/ulzmHLPYBXgX5UhRMkgZNA== MIME-Version: 1.0 X-Received: by 10.52.115.163 with SMTP id jp3mr7301239vdb.78.1425279087326; Sun, 01 Mar 2015 22:51:27 -0800 (PST) Received: by 10.52.113.231 with HTTP; Sun, 1 Mar 2015 22:51:27 -0800 (PST) In-Reply-To: <54F0839C.3010700@seld.be> References: <54F07FC7.8050901@php.net> <54F0839C.3010700@seld.be> Date: Mon, 2 Mar 2015 10:51:27 +0400 Message-ID: To: Jordi Boggiano , Nikita Popov Cc: PHP Internals Content-Type: multipart/alternative; boundary=bcaec547c675b4cfda051048a50b Subject: Re: [PHP-DEV] [VOTE] Exceptions in the engine From: dmitry@zend.com (Dmitry Stogov) --bcaec547c675b4cfda051048a50b Content-Type: text/plain; charset=UTF-8 Please, write additional RFC if you are ready to work on it and provide implementation. The class hierarchy is definitely not the main part of this one. The idea was just to make difference between Exception, EngineException and ParseException. Thanks. Dmirty. On Fri, Feb 27, 2015 at 5:47 PM, Jordi Boggiano wrote: > On 27/02/2015 14:31, Sebastian Bergmann wrote: > >> Am 23.02.2015 um 19:15 schrieb Nikita Popov: >> >>> Voting on the engine exceptions RFC, which proposes to convert existing >>> fatal and recoverable fatal errors into exceptions, has opened: >>> >>> https://wiki.php.net/rfc/engine_exceptions_for_php7#vote >>> >>> The primary vote requires a 2/3 majority, as this is a language change. >>> >>> A second vote will decide whether to use a BaseException based >>> inheritance >>> hierarchy. This vote uses a simple majority. >>> >> >> I have voted yes on "Allow exceptions in the engine and conversion of >> existing fatals?" and no on "Introduce and use BaseException?" and >> would like to elaborate on the latter. >> >> I am sorry that I was unable to raise this concern earlier (did not >> really become aware of the RFC before it was put to the vote), but I >> would prefer the following: >> >> * Introduce a Throwable interface >> * Let Exception implement the Throwable interface >> * Introduce an Error class that implements the Throwable interface >> * Use Error class as base class for exceptions raised by the engine >> >> This would be along the lines of what Java does. >> > > +1 on that, and as it seems the BaseException is going to pass, it might > be good to quickly draft another RFC to amend that part. > > It seems people in general favor the fact that catch(Exception $e) does > not catch those new engine exceptions, but there hopefully would not be > much resistance against a cleaner scheme than a BaseException class. > > Also the Error (and possibly Throwable) class/interface might be put in a > PHP namespace and then we avoid any potential BC issues, but that's perhaps > another voting point :) > > Cheers > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --bcaec547c675b4cfda051048a50b--