Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91560 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96818 invoked from network); 8 Mar 2016 23:06:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2016 23:06:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=bjorn.x.larsson@telia.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=bjorn.x.larsson@telia.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain telia.com from 81.236.60.155 cause and error) X-PHP-List-Original-Sender: bjorn.x.larsson@telia.com X-Host-Fingerprint: 81.236.60.155 v-smtpout2.han.skanova.net Received: from [81.236.60.155] ([81.236.60.155:58934] helo=v-smtpout2.han.skanova.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/C2-15119-50B5FD65 for ; Tue, 08 Mar 2016 18:06:46 -0500 Received: from [192.168.7.7] ([195.198.188.252]) by cmsmtp with SMTP id dQiAa42k61jYHdQiAahH2W; Wed, 09 Mar 2016 00:06:42 +0100 To: Pierrick Charron , =?UTF-8?B?QnJvbmlzxYJhdyBCaWHFgmVr?= References: Cc: PHP internals Message-ID: <56DF5B04.1080505@telia.com> Date: Wed, 9 Mar 2016 00:06:44 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfPoGLRiRjOAEkuqs4CP5Cp+VAFfelRv1yvPPp/8VEqcxTJ+qOepBRs4PX9k7j+rRBVLLYhwJVJaCwf2ep1ADBnS+hT14E8U13EvQ3ODDVw2+OX9jq+7h tJ8DxgM+bNDmr+gUvxVNzL9URlz8VGMZrsDiCI+dlv6+AWixQUXpUBBcsDbJPVomJjTBX3k4wR+g/kUuYloiApF3ybWhdb9bBerlNSETDrdeQabfj6yHrcub tnT99YifpttZUbfhbDYEUA== Subject: Re: [PHP-DEV] [RFC Discussion] Catching multiple exception types From: bjorn.x.larsson@telia.com (=?UTF-8?Q?Bj=c3=b6rn_Larsson?=) Den 2016-03-08 kl. 22:42, skrev Pierrick Charron: > Hi internals, > > Bronisław Białek and I would like to start a discussion about allowing > multiple exception types to be caught in a single catch statement. > > https://wiki.php.net/rfc/multiple-catch > > A working implementation and tests are available in the RFC. > > We are waiting for your constructive feedback and thoughts. > > Thanks > Pierrick > Nice RFC! Think it would be good if you had an example in the RFC showing the applicability of catching two php exceptions. Especially given the new exception hierarchy in PHP 7. I'm also pondering if the main target for this is custom exceptions or the built-in ones or both? Regards //Björn Larsson PS