Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70552 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36676 invoked from network); 9 Dec 2013 15:39:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2013 15:39:08 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.178 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.212.178 mail-wi0-f178.google.com Received: from [209.85.212.178] ([209.85.212.178:50616] helo=mail-wi0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/51-28714-A14E5A25 for ; Mon, 09 Dec 2013 10:39:07 -0500 Received: by mail-wi0-f178.google.com with SMTP id bz8so3798954wib.17 for ; Mon, 09 Dec 2013 07:39:03 -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=C5b4iVz2qlf5dkNVzO8tplT3QKRYSatpGegGk8v2m38=; b=feXFcN9ETB/GRjquveGV6CUBW2iiEX/CsqaFQXFDk+Lj8dqwiSxY6uOh7OCwUg+8AV YZIJk5r/6ZWZ+1LutJGLZto5udcGVcrgLn5ChHh7sNIO8pnSUz8yDdfMX33H99EUnZsV L8iQHug6Bu15UaLyzhh0XLgempfmMwnt9LCAbp7zHZLhYdR1TGfZlQvK4abg42+YvrWD 1HuECj973nDFGuBvqsnMaW6iuG5/fjjnPUTXn2QQ3d0Cl4lrFnxQdsBSuQGemL+WDKer A0XMbTqmO/9nAqsVO4On9ts1VHXB4A1ECAWLrwBppvri/4jGym9FU2NHdh6YdaqvSLzW oKfw== MIME-Version: 1.0 X-Received: by 10.194.95.198 with SMTP id dm6mr6600904wjb.57.1386603543456; Mon, 09 Dec 2013 07:39:03 -0800 (PST) Received: by 10.227.7.2 with HTTP; Mon, 9 Dec 2013 07:39:03 -0800 (PST) In-Reply-To: References: Date: Mon, 9 Dec 2013 16:39:03 +0100 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE] Allowing use of exceptions in the engine From: pierre.php@gmail.com (Pierre Joye) hi, On Sat, Dec 7, 2013 at 1:57 PM, Nikita Popov wrote: > 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. I do not mind having it in 5.x or 6. but I do mind introducing exceptions in the core without defining what we want. Baby steps are nice but where do we stop at this stage then? Can we use exceptions in extensions as well? Or in other parts of the engine? This is a very good move forward but also a very critical move. We need to clarify how we do it, where it can be done, naming or how we want them exactly, etc. That's why I can't vote yes with this exact proposal (and its state). Cheers, -- Pierre @pierrejoye | http://www.libgd.org