Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87763 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99279 invoked from network); 17 Aug 2015 11:15:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Aug 2015 11:15:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.220 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.220 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.220] ([81.169.146.220:39148] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/F0-17888-132C1D55 for ; Mon, 17 Aug 2015 07:14:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1439810094; l=2719; s=domk; d=kelunik.com; h=Content-Type:Cc:To:From:Subject:Date:References:In-Reply-To: MIME-Version; bh=T/RePVjXLMSXRmIw+1J4aCGKoN408dyJRkLROCH4HQc=; b=XIr4MiNbFs76uMlzYX8qkA1vmGKlR1Nb2tZibWzm7gvI3wZG53TWu73ZyufObQSPNjQ 2RUolH1Eqjvac/LyV2sAuw4u0f53EKqAQ17vlJ8NtPrPUO1sfrx3zP2InPghTMUQoRmKx wQ+UopJCOjl1FUXj2WEVrQb0olN+1PtDeF0= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLDup6E67mzuoBMBqD/uQM= X-RZG-CLASS-ID: mo00 Received: from mail-io0-f179.google.com ([209.85.223.179]) by smtp.strato.de (RZmta 37.9 AUTH) with ESMTPSA id g019cdr7HBEsIZD (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Mon, 17 Aug 2015 13:14:54 +0200 (CEST) Received: by iodt126 with SMTP id t126so147424399iod.2 for ; Mon, 17 Aug 2015 04:14:53 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.107.166.136 with SMTP id p130mr734460ioe.163.1439810093703; Mon, 17 Aug 2015 04:14:53 -0700 (PDT) Received: by 10.64.15.101 with HTTP; Mon, 17 Aug 2015 04:14:53 -0700 (PDT) In-Reply-To: <20150817123142.13418f26@csystems> References: <20150817123142.13418f26@csystems> Date: Mon, 17 Aug 2015 13:14:53 +0200 Message-ID: To: Christian Weiske Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a1141f3922df06a051d7fe953 Subject: Re: [PHP-DEV] set_exception_handler catches all Throwables From: me@kelunik.com (Niklas Keller) --001a1141f3922df06a051d7fe953 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This is intended and documented here: http://php.net/manual/en/function.set-exception-handler.php Regards, Niklas 2015-08-17 12:31 GMT+02:00 Christian Weiske : > Hi, > > > We're trying to use TYPO3 on PHP7 and have the problem that throwables > get passed to the exception handler because 'set_exception_handler()' > does send all throwables to the handler, not only exceptions. > > Is this intended, or should a "set_throwable_handler()" function be > introduced instead? > > Example: http://3v4l.org/b5iV6 > > -- > Regards, > Christian Weiske > -- > Regards/Mit freundlichen Gr=C3=BC=C3=9Fen > Christian Weiske > > -=3D Geeking around in the name of science since 1982 =3D- > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a1141f3922df06a051d7fe953--