Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77798 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62701 invoked from network); 7 Oct 2014 12:15:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Oct 2014 12:15:58 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.48 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.192.48 mail-qg0-f48.google.com Received: from [209.85.192.48] ([209.85.192.48:57127] helo=mail-qg0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B0/97-30869-E79D3345 for ; Tue, 07 Oct 2014 08:15:58 -0400 Received: by mail-qg0-f48.google.com with SMTP id i50so5124823qgf.21 for ; Tue, 07 Oct 2014 05:15:55 -0700 (PDT) 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=ShJ7ZLBoOb4P8HXeN9ZE2MdZLbqfZ2fuk5Iz9WRUigo=; b=YtJRk13KkWj5jjTeoJtUeo3MN57pJfiXrqPMPLB81qsk3brtUUBSCWEICDWsVIayDV pP5pF0d/cKLnsoOj6oTXPEKkAJrf6jHrcNN1krsqmTFN3YUMbo+WHYME2elOIEFHHily CybW4dxRfPHmydMt61/MH/ucf+a9zbuC3HUrl/TOLR7ZzYCj8bvqW4/ESbVpTH6ho3k+ LWwfEK9Ck38sNn1cwPHths7MIPQjsCwQcHBFLN+nHc9ajUmeaYAiGBrZCQm63DRR9Yyz q2kuz9xvUGziBjHGn3rSv385r0O4YQ80OTrr2cVMZa+t1lantg+h3m3suUMipB9IcLi1 WdKg== MIME-Version: 1.0 X-Received: by 10.224.37.69 with SMTP id w5mr3457811qad.67.1412684155711; Tue, 07 Oct 2014 05:15:55 -0700 (PDT) Received: by 10.140.107.130 with HTTP; Tue, 7 Oct 2014 05:15:55 -0700 (PDT) In-Reply-To: <4ED7146272E04A47B986ED49E771E347BD7DB8503E@Ikarus.ameusgmbh.intern> References: <4ED7146272E04A47B986ED49E771E347BD7DB8503E@Ikarus.ameusgmbh.intern> Date: Tue, 7 Oct 2014 14:15:55 +0200 Message-ID: To: Christian Stoller Cc: Dan Ackroyd , Stas Malyshev , Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary=001a11c1c9c847f8b70504d429ca Subject: Re: [PHP-DEV] [RFC] Exceptions in the engine From: tyra3l@gmail.com (Ferenc Kovacs) --001a11c1c9c847f8b70504d429ca Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Oct 7, 2014 at 11:51 AM, Christian Stoller wrote: > From: Dan Ackroyd [mailto:danack@basereality.com] ,Sent: Tuesday, October > 07, 2014 10:55 AM > > > > Stas wrote: > > > >> The only issue I think we need to discuss is catch(Exception $e). Now = it > >> would catch much more than before, if we do no changes. > > > > It's not clear why would that be an issue - can you specify what the > > problem would be? > > > > Also, if we changed `catch(Exception $e)` to not catch all exceptions, > > than we would need to have another way of specifying that a catch > > block should catch all exceptions. Which would involve either making > > \Exception extend another even 'baser' Exception, or a hack to the > > syntax e.g. something like: > > > > catch($e) { > > // Catch without Exception type catches all exceptions > > // and confuses people. > > } > > > > cheers > > Dan > > Ack > > We could make EngineException to be parent of the base Exception class. > And, if it is technically possible, it must be forbidden to extend > EngineException directly in userland. > > This is just an idea. It would be a little bit strange if Exception is > not the base exception class ;) but it makes sense, because EngineExcepti= on > is an exception of all other exceptions ^^ > > Christian > yes, this was also suggested before, but that will be also a BC break for those people already using the name of the new parent class ( https://github.com/search?l=3Dphp&q=3DEngineException&type=3DCode&utf8=3D%E= 2%9C%93 for example). which can be still an ok decision, I'm just stating/repeating the pro/cons as this was all discussed before. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a11c1c9c847f8b70504d429ca--