Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84006 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69003 invoked from network); 27 Feb 2015 14:31:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2015 14:31:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=sebastian@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sebastian@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 93.190.64.238 as permitted sender) X-PHP-List-Original-Sender: sebastian@php.net X-Host-Fingerprint: 93.190.64.238 mail-2.de-punkt.de Received: from [93.190.64.238] ([93.190.64.238:34888] helo=mail-99.de-punkt.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/A1-32582-ACF70F45 for ; Fri, 27 Feb 2015 09:31:40 -0500 Received: from localhost (localhost [127.0.0.1]) by mail-99.de-punkt.de (Postfix) with ESMTP id 0FCD13A275 for ; Fri, 27 Feb 2015 15:31:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail-2.de-punkt.de Received: from mail-99.de-punkt.de ([127.0.0.1]) by localhost (mail-2.de-punkt.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MqCum469BQMM for ; Fri, 27 Feb 2015 15:31:34 +0100 (CET) Received: from [192.168.178.24] (p57BDFA1D.dip0.t-ipconnect.de [87.189.250.29]) (Authenticated sender: php@sebastian-bergmann.de) by mail-99.de-punkt.de (Postfix) with ESMTPSA id D3C253A1DA for ; Fri, 27 Feb 2015 15:31:34 +0100 (CET) Message-ID: <54F07FC7.8050901@php.net> Date: Fri, 27 Feb 2015 15:31:35 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [VOTE] Exceptions in the engine From: sebastian@php.net (Sebastian Bergmann) 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.