Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70526 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21557 invoked from network); 7 Dec 2013 23:31:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2013 23:31:44 -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.214.174 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.174 mail-ob0-f174.google.com Received: from [209.85.214.174] ([209.85.214.174:46250] helo=mail-ob0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/E2-01020-FDFA3A25 for ; Sat, 07 Dec 2013 18:31:44 -0500 Received: by mail-ob0-f174.google.com with SMTP id wn1so2290824obc.5 for ; Sat, 07 Dec 2013 15:31:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rcfDhKoY5f4OIo5fEOU3j3QwX5CZHT3P2S1Olc68ll4=; b=jjd6c/l1PdcaamYneVDXfer+4fmeE9hMYnzB+RZvvDzwPCTcNiD97Tx9ipte0qM9ne 0T204Ntilj8MKNwnsQWw2IdtUU9RktI/lzcOM6WBN57nMtuilW8AETzSUZgCjqsgzlDT hjcm4AEeSHHeQm7yd+HudmcMNoFl5mRCWWUke/mGgvSjiNTglB/kId8CAT3Ihc+dfLbk //9yObksQisHuxn+cN7NAx18fmaJCCeuRO/2MJWxR0XOrpPJadNe8dlH//VowvHIvWUx puUkzAu5IXLoMFx1uCDFwFpp5zM5yY3ToJi45Mpvd3RuwCBDbWhHpglUuYm6pURNPsvW qGzQ== MIME-Version: 1.0 X-Received: by 10.60.146.210 with SMTP id te18mr7927469oeb.20.1386459101433; Sat, 07 Dec 2013 15:31:41 -0800 (PST) Received: by 10.182.54.112 with HTTP; Sat, 7 Dec 2013 15:31:41 -0800 (PST) In-Reply-To: References: Date: Sun, 8 Dec 2013 00:31:41 +0100 Message-ID: To: Adam Harvey Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7b5d42f83c92ac04ecfa2a77 Subject: Re: [PHP-DEV] [VOTE] Allowing use of exceptions in the engine From: nikita.ppv@gmail.com (Nikita Popov) --047d7b5d42f83c92ac04ecfa2a77 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Sat, Dec 7, 2013 at 10:47 PM, Adam Harvey wrote: > On 7 December 2013 04:57, Nikita Popov wrote: > > 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. > > > > 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 i= t > > fails now, someone can revive this once the time for PHP 6 has come. > > To be clear: I've voted -1 for exactly this reason, and this reason > alone. I don't think implementing this piecemeal (without the > E_RECOVERABLE_ERROR changes) is the right way to go =97 I would prefer > to have the whole thing as part of a 6.0 release, rather than > potentially confusing users with a partial implementation. > If you're concerned about E_RECOVERABLE_ERROR in particular I should point out that there are very few recoverable fatals in the engine. Actually, the only common recoverable error is the typehint violation error. The others are along the lines of "Instantiation of 'Closure' is not allowed" or "Closure object cannot have properties" - not something you usually encounter. For a full list see http://lxr.php.net/search?q=3DE_RECOVERABLE_ERROR&defs=3D&refs=3D&path=3DZe= nd&hist=3D&project=3DPHP_TRUNK. So I don't think that E_RECOVERABLE_ERROR is a particularly large loss in itself - but the "partial implementation" argument presumably still stands even without it (won't be able to port all fatal errors at once, after all.= ) Nikita --047d7b5d42f83c92ac04ecfa2a77--