Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87484 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71196 invoked from network); 1 Aug 2015 11:05:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Aug 2015 11:05:24 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.21 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.21 mout.gmx.net Received: from [212.227.17.21] ([212.227.17.21:49414] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 64/F1-54109-FE7ACB55 for ; Sat, 01 Aug 2015 07:05:21 -0400 Received: from [192.168.0.100] ([95.89.139.132]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lb5Tp-1YbPCc46qP-00kjsp; Sat, 01 Aug 2015 13:05:08 +0200 Message-ID: <55BCA7EE.4030301@gmx.de> Date: Sat, 01 Aug 2015 13:05:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Markus Malkusch , Stephen Coakley , internals@lists.php.net References: <55BBD019.5030106@stephencoakley.com> <55BC201D.6010600@malkusch.de> <55BC9361.1080804@malkusch.de> In-Reply-To: <55BC9361.1080804@malkusch.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:K8Aa09VJ9MUhuqQu6VPhwS0PYA/yu/2t5SYJYXFJ9JHaa6OELot N71CKh6ROTv4O2aCZm0CG50Fo0zE62hd7QoVeElr56iw0pIXGLGxsPKZF6xpmAjobisTq8u 62Ne3tctuViKBdRvg2yAKe9YEMDiV1tLAie+va5uF0dFJYp3Der9ld3d13v39Eal7NVWuTd 4KVnc2dIjDgdVC8YEpeYw== X-UI-Out-Filterresults: notjunk:1;V01:K0:ADFfi2ZGVvs=:4ev3rWBQ4NzNmyXvjjl36q uu28Au+1WxBN6rxK+8KHLf93Gufwi79SFv+G9w6V7fnCsuXLoUK1pTXzLRQ0xbhvHiBDmQPgk qbwe/UOP8s/hryecKv6fXLy60odjutxHoosQ27TIh3dvwYc+e1Br76586IPAb3phCC7eSHSNj fUDQ2flPFKpGVja2bSGGzOkRF74gUYszPfdrH3QxiXoHEsFV7xDbVSEHbViAlObsAgxPeQ7GY Nx3SHItCSb7veugE1gxXjm6GS30mh0W3KhFNHbTVBDAxfv/b/KWWbC4C4moPKSoz2VzDlqP6L wVNezsZz5c3eAEuXoxp0XhgGDhhyn75vd9Gr+5DTuEYomleSlIxkzZEnoQQwan8OMPzp1SvO9 UeOgf92DBxpYroxHcQFIh5cTMvoL19OChs8jG27nPAPohLRD2p4fQ1jCKtXUIgZzoV4n2R5Ri eIySPqUnKVsA+RoUSKrM04l398w77iln3XvOPT5XIg9/SEwlKENCoZB+ftW7L4kyO3DXkQxVj Kqxc5DfOfaGSmLjvsq7M4+oGUtAqEU3eyAcIYiccHfVQfzuaramDb45BvvqJV7m6WlWfAGrB1 l9S2FKUJ4FzbQj/LQ0vlWOaYXVkZB0BP6goSSg/xQd2+rIeSv0n7cvl6O2eAUCKGuLJO3GkjQ 3HlZ77259vlEjqxeBRgsUWJsNkYy/O2lxsKBKAN2B8s/GOlqO2jlBYxExmCMRE5sJM9g= Subject: Re: [PHP-DEV] Re: Throwable::addSuppressed() From: cmbecker69@gmx.de (Christoph Becker) Markus Malkusch wrote: > Markus Malkusch: > >> 2) You are loosing one stack trace > > I'd like to revise that. I'd just learned that finally does indeed fit > here, as it would automatically glue exceptions: > > try { > throw new Exception("A"); > > } finally { > throw new Exception("B"); > } > > This prints both exceptions: > > PHP Fatal error: Uncaught exception 'Exception' with message 'A' in > /home/malkusch/tmp/test.php:4 Stack trace: > > #0 {main} > > Next exception 'Exception' with message 'B' in /home/malkusch> > /tmp/test.php:7 Stack trace: > > #0 {main} > > So B's previous became A. Well I'm surprised, as there's no causality > between them, but OTOH it's called Exception::getPrevious() without any > further semantics. So this might be acceptable. Note that there's an open bug report () regarding this issue. -- Christoph M. Becker