Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86257 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58088 invoked from network); 16 May 2015 19:07:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2015 19:07:41 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.173 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.173 mail-pd0-f173.google.com Received: from [209.85.192.173] ([209.85.192.173:36522] helo=mail-pd0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/5A-14891-C7597555 for ; Sat, 16 May 2015 15:07:40 -0400 Received: by pdfh10 with SMTP id h10so76235114pdf.3 for ; Sat, 16 May 2015 12:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=uxQfkiTWbywOHNS3SnniSYCB6qb/c/fSzyzbjZWtqVM=; b=J7s41TgDQxYdVXij5NP5pw4Gd3Guxh9b0vMmtfYnq1x9lgbGR0LIKGHbaCkZyc5dNY kXqlM1cYyHyGDIlWXU7S1jnmD8T0qneU4tn8UmbdXYVyj79473uPcqDUJiwKUoE2UpWW 4c0DmZuihhfqK4zZpeprnSmJEFA4sin0eDjgwBHVLVfSbO0/EzSIjOiZDFXCjt9VzCIw Aca5qtNgI6TEepYC4zCFVMZUeqVmDAUzoS0D8ps7XahCuQ62TLSzBViK6ZbVPA4vBXpc +iWloWume8ThtJA+4T+BNyQA1U9w2GYgWqMfAXMbqCeePfnjQGlOrfOhvORp+WF5X/En yGmA== X-Received: by 10.68.87.5 with SMTP id t5mr29334699pbz.137.1431803257341; Sat, 16 May 2015 12:07:37 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id xz3sm5443725pbc.13.2015.05.16.12.07.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 May 2015 12:07:36 -0700 (PDT) Message-ID: <55579575.6060409@gmail.com> Date: Sat, 16 May 2015 12:07:33 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Levi Morrison CC: Rowan Collins , internals 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> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE] Exceptions in the engine From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > You are incorrect. The set of exceptions that `catch (Exception)` > catches is all exceptions by its definition. By altering it to no There's no such definition. It's invented to serve your point, which makes it circular logic. catch(Exception) catches everything that descends from Exception. It is true that throwables that do not descend from Exception did not exist before, however their exact semantics was implemented as engine errors, so nothing changed in that regard. catch(Exception) did not catch parse errors, it still doesn't. > longer include all exceptions means the semantics of it changed. No, it doesn't mean that. It catches every exception descended from class Exception as it did before. Nobody guaranteed you - and if fact it never were true - that there are no other situations which can lead to early exit from the code and that catch(Exception) can't catch. It is still the case. Before, these things were implemented as "errors", now some of them are implemented as exceptions. That's an implementation detail, semantic hasn't changed - except for the fact that you can now catch more of them is you wanted. -- Stas Malyshev smalyshev@gmail.com