Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69879 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55467 invoked from network); 26 Oct 2013 15:04:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2013 15:04:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.172 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.172 mail-wi0-f172.google.com Received: from [209.85.212.172] ([209.85.212.172:50985] helo=mail-wi0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/71-45431-00ADB625 for ; Sat, 26 Oct 2013 11:04:33 -0400 Received: by mail-wi0-f172.google.com with SMTP id ez12so2205763wid.17 for ; Sat, 26 Oct 2013 08:04:30 -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:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=bnhlZs8d4K0DJ8DbXm3QpblzcILWtTA56+V+nnan6Xw=; b=bvU/aPOBOOABuYan/uRZy5gC8QalHe9eIcaW+VopX/bdKjzL3aUXsY6kgDh9xHcjdp tp+r65idI+kijoeSDIwEt1j6tz9gYmhTSMnYmOc9fbRmtzAXNofHub9gRPbr2czvPb6q bPLySmXfoPwQ/jUb3y9kNwLHBbDw4xJmtib0wRuvCK6gl9PNmgW3CIm8yRDdoY8fRRUT 57d3HQSMSosGvB4iRG2sFQsa9MMFAeLlCDbSXJcxJFl6OxB9z27lWk5T3/f71v7eB/Gy D0WjGAss6yWL+na0aU05XkXkLkv534Y2oKbHN7MznhTcevQDqwf//hqDnXX1Zax10vxq LBGg== X-Received: by 10.180.9.139 with SMTP id z11mr2711148wia.22.1382799870169; Sat, 26 Oct 2013 08:04:30 -0700 (PDT) Received: from [192.168.0.2] (cpc19-brig17-2-0-cust25.3-3.cable.virginm.net. [81.101.201.26]) by mx.google.com with ESMTPSA id s4sm16782427wiy.1.2013.10.26.08.04.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 26 Oct 2013 08:04:29 -0700 (PDT) Message-ID: <526BD9F5.9040309@gmail.com> Date: Sat, 26 Oct 2013 16:04:21 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: <52699FB5.20300@garfieldtech.com> <526A6BCC.3060502@php.net> <526AC472.8060607@sugarcrm.com> <526AC950.7020605@php.net> <526BB309.4030106@gmail.com> <526BD0FB.1020809@php.net> In-Reply-To: <526BD0FB.1020809@php.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Exceptions in the engine From: rowan.collins@gmail.com (Rowan Collins) On 26/10/2013 15:26, Joe Watkins wrote: > They _should_ exist as a boundary, a last resort, if at all, but when > they do exist they are no such boundary or last resort, they are > normal catch blocks because the core throws the base Exception ... I'm > just making the observation that it's not a very good idea to do that, > doesn't take a lot to fix, has no bc issues and sets the right kind of > standard. Right, I'm agreed that throw statements should be as specific as possible, both in core/extensions and in userland. But you seemed to link that somehow to catch(Exception) blocks, which are an entirely different topic, and have valid use cases, since they mean "catch everything descended from this class" not "catch things with this exact class". Regards the engine throwing exceptions, it's the catch side of things which is most relevant. -- Rowan Collins [IMSoP]