Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70523 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14314 invoked from network); 7 Dec 2013 21:47:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2013 21:47:46 -0000 Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.223.175 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.223.175 mail-ie0-f175.google.com Received: from [209.85.223.175] ([209.85.223.175:60111] helo=mail-ie0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/A1-01020-08793A25 for ; Sat, 07 Dec 2013 16:47:45 -0500 Received: by mail-ie0-f175.google.com with SMTP id x13so3780140ief.34 for ; Sat, 07 Dec 2013 13:47:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=KWByhxfIFBbdNB+NFKQ8ZEbPIviLxV1H+9Rs/PFvIgo=; b=IdpsRAJB8UtzaqD5dq5ArwJ32iz8KGvz0+YAETWDZVKhoMUa4o4rwm3c1PZKGrT2G1 diVVu3nD0dr5WRNGPNzDWTnOJP6Zzyg7MkWg4Z4LFvcDd/plcbOkv8NdUwF0sZTJetx+ oHNvusHwv8LP65r+6JP3EAxO72o3ktVEJv6mE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=KWByhxfIFBbdNB+NFKQ8ZEbPIviLxV1H+9Rs/PFvIgo=; b=f0K3674Jb8Y/iX3NU15Y4qh+CvIFpCMlZ3DLfixyD0bUx3R8jyXDzMYgGXX7sKflTR PvclyMVTVbIKKtzjxNbqijqdHlaR2RiFCxrCLbgqDfdTXuVEsp3d+T+CmQWEHxOzVouD mDcz0AlyC28osJeaK4ZjZQxPXoIDtZsdvDSL1+S9rKwcG0ZKcEvKL4837JuArDfhD5ZL uQ7pbTsui1MLPwfZMA2zeP2K8ZTZ8QK/PQvDxT0Hcfo4SYnEgKEEOPYknKdhOCM8cjbr QCcRar+5q0+qpjYd1mHDmDOavIajw3UGvzJfS4JpMVI96FJz85xNSnVLeMKcBpNzqJzi byoA== X-Gm-Message-State: ALoCoQlkMCEGsofNwjXgp+oFjHua3hIltMVoUCKLuCDExKblV688Ha6dj2SoUwgYpg44DRzIrl7i X-Received: by 10.50.98.10 with SMTP id ee10mr9204550igb.30.1386452861829; Sat, 07 Dec 2013 13:47:41 -0800 (PST) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.42.206.208 with HTTP; Sat, 7 Dec 2013 13:47:20 -0800 (PST) In-Reply-To: References: Date: Sat, 7 Dec 2013 13:47:20 -0800 X-Google-Sender-Auth: YW915UBK82kZe0CUTrvyoKC2ics Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE] Allowing use of exceptions in the engine From: aharvey@php.net (Adam Harvey) 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 proposa= l > without BC issues. > > And regarding the vote: If you are in favor of the proposal in general, b= ut > 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. 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 =E2=80=94 I would prefe= r to have the whole thing as part of a 6.0 release, rather than potentially confusing users with a partial implementation. Notes on the notes: > * I will not be including something like BaseException. Introducing it f= or > 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 B= C > [1] even without it, I don't see a reason to introduce it. +1. I think I said last time that it felt like the mysql_real_escape_string() of exception API design. :) > * 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 f= ix > something like the SPL exception mess later. Also +1. Adam