Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86256 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56563 invoked from network); 16 May 2015 19:03:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2015 19:03:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.173 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.223.173 mail-ie0-f173.google.com Received: from [209.85.223.173] ([209.85.223.173:33461] helo=mail-ie0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/F9-14891-D8497555 for ; Sat, 16 May 2015 15:03:41 -0400 Received: by iebgx4 with SMTP id gx4so144913123ieb.0 for ; Sat, 16 May 2015 12:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=AOmHxqr/sB8u8wouHG18YFjiHA/FfBuCZrE4tY6nV2U=; b=PDwErJNBAn/hwu8VRU3Xh9N0jj4xBYZuWgF9eo2otbGnritfZ5eaDZ1CQp7BU7F0z4 Hyv28jEEjSb3LH1wSzeeyJI2Ng8eI2m5CmaLWITM8p/zHhRkkRk5nNOec/WPuSGa6UQ6 dGaT7LIKzBa3bGAySkOMLB0NNiUi64SFbB22FeRrjgvqoD1sIZAmnEntQ2oA+Qd8Zclw /s+7FotjrmOzz9/9XYbFBZZun8JNYPNaj89Pq106ZasR8aSBROIUlHcBv5nxsaiWET8m CgPgwyM7LXaB3f8rV4h3IOW7phUx040u39V9JihLQSulRNrs2dTJD/YHLiRHiwq3MSbt DkGA== MIME-Version: 1.0 X-Received: by 10.50.73.198 with SMTP id n6mr5594064igv.32.1431803018402; Sat, 16 May 2015 12:03:38 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.79.98.67 with HTTP; Sat, 16 May 2015 12:03:38 -0700 (PDT) In-Reply-To: References: <54F07FC7.8050901@php.net> <54F0839C.3010700@seld.be> <55052FAD.6090608@php.net> <5505346D.7020700@php.net> <550DA4EE.2030903@php.net> <55410973.4010300@php.net> <55417C64.7000707@gmail.com> <5541B4D6.9060503@php.net> <55425D7E.6010803@gmail.com> <554D8F4D.9020903@gmail.com> <554D90CC.3040607@php.net> <5552E3EB.5010800@gmail.com> <5552E494.5070401@php.net> <5552FF58.8070807@php.net> <55575DCF.50801@gmail.com> <55578C61.3040408@gmail.com> Date: Sat, 16 May 2015 13:03:38 -0600 X-Google-Sender-Auth: v0nxbWCk-B5Ripa5EBk9rlyHerM Message-ID: To: Stanislav Malyshev Cc: Rowan Collins , internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE] Exceptions in the engine From: levim@php.net (Levi Morrison) On Sat, May 16, 2015 at 12:44 PM, Levi Morrison wrote: > On Sat, May 16, 2015 at 12:28 PM, Stanislav Malyshev > wrote: >> Hi! >> >>> There's nothing that prevents us from reneging on that by another >>> vote. If it's a bad decision backed by logical arguments then we can >> >> That's a pretty big if, given that your only argument - that it is a BC >> break - is incorrect, as in fact the set of exceptions caught before and >> after change is exactly the same, and the only difference is that in the >> new code, you can *also* catch errors, the option that you didn't have >> before. Absent that argument, there's no reason to renege. > > You are incorrect. The set of exceptions that `catch (Exception)` > catches is all exceptions by its definition. By altering it to no > longer include all exceptions means the semantics of it changed. From our manual (http://php.net/manual/en/language.exceptions.php): > The thrown object must be an instance of the Exception class or a subclass of Exception.