Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87766 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26986 invoked from network); 17 Aug 2015 14:20:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Aug 2015 14:20:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:47595] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/61-05177-3E8E1D55 for ; Mon, 17 Aug 2015 10:00:04 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 793A6E20D6; Mon, 17 Aug 2015 15:00:00 +0100 (BST) Date: Mon, 17 Aug 2015 15:00:00 +0100 (BST) X-X-Sender: derick@whisky.home.derickrethans.nl To: Christian Weiske cc: Niklas Keller , PHP Internals In-Reply-To: <20150817131900.66906015@csystems> Message-ID: References: <20150817123142.13418f26@csystems> <20150817131900.66906015@csystems> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] set_exception_handler catches all Throwables From: derick@php.net (Derick Rethans) On Mon, 17 Aug 2015, Christian Weiske wrote: > >This is intended and documented here: > >http://php.net/manual/en/function.set-exception-handler.php > > If "Documented" means the note > > > Note that providing an explicit Exception type hint for the ex > > parameter in your callback will cause issues with the changed > > exception hierarchy in PHP 7. > > then yes, it's documented. > > But I'd not see this as documented or rather liked a more explicit > mention of Throwables there. Actually, I don't call this intended. This is just as much as a BC break as the original implementation where Errors where also Exceptions. IMO, set_exception_handler() should be changed - with my preference it not capturing Error, and instead have an additional set_throwable_handler(). cheers, Derick