Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70541 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93604 invoked from network); 9 Dec 2013 05:14:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2013 05:14:15 -0000 Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.182 as permitted sender) X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.192.182 mail-pd0-f182.google.com Received: from [209.85.192.182] ([209.85.192.182:65367] helo=mail-pd0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 99/70-23208-5A155A25 for ; Mon, 09 Dec 2013 00:14:14 -0500 Received: by mail-pd0-f182.google.com with SMTP id v10so4535121pde.27 for ; Sun, 08 Dec 2013 21:14:10 -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=K5omPCWuTATzC2vF5U6kdzmGoIC6buylMVdN3PUwRgw=; b=H7w2RmUcv95Xt6M8GN6iPiRxnCtUJv46uNviwhjLlVzV2DWJC5lAsGb6jBue3Ilb6n rFy89ZxK1MkO4PJeF9+LfYEb859FLBrwpXMwh3abmn06aZGNCrRMFLxtojJMYGtG+r2n 8YKfzU4jIjdvqB95EcibxJ2IFWWrgMXZ3uCXcFEI19FdO5PSYbsyp9IBwHLwvhQTlopN NDtNVIe6fFzI4IQzVhXX+zIiVCgwaXS2y5wCedw/XbJQC6Anjz5gfx3g3/+YXYmOQSz5 F8Q4JaJHPM3ixvr1Ivm4Do6VUcZLhZRBPtlpOtYmWpvmyhnnrkxRbi7l7RhP1/UrcDh8 GMxA== MIME-Version: 1.0 X-Received: by 10.66.121.131 with SMTP id lk3mr18575008pab.61.1386566050479; Sun, 08 Dec 2013 21:14:10 -0800 (PST) Received: by 10.68.183.4 with HTTP; Sun, 8 Dec 2013 21:14:10 -0800 (PST) In-Reply-To: References: Date: Sun, 8 Dec 2013 21:14:10 -0800 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: hannes.magnusson@gmail.com (Hannes Magnusson) On Sat, Dec 7, 2013 at 4:57 AM, 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. > Wow. This is one of the bigger language changes I have seen proposed to date. I see the framework guys jumping in on this right away wanting pretty OO interface of course - but hold your horses a bit. This is a very fundamental change in the language and a vote should not be casted lightly. The recoverable error cases is something I argued when breaking type hinting was decided to be E_REOCVERABLE_ERROR for reasons that still baffle me (and depending if its extension code or userland code, effectively continues current context or not, since internals will most likely bail out on zpp) - but now we are talking about about changing something much bigger then that... If this gets accepted, what is the reason we have these error levels at all, and shouldn't E_* friends be rewritten into more convenient logging framework and remove the association with "errors"? -Hannes