Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87802 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14193 invoked from network); 19 Aug 2015 14:13:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2015 14:13:33 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.218 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.218 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.218] ([81.169.146.218:30524] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/59-54915-C0F84D55 for ; Wed, 19 Aug 2015 10:13:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1439993609; l=1593; s=domk; d=kelunik.com; h=Content-Type:Cc:To:From:Subject:Date:References:In-Reply-To: MIME-Version; bh=LOiirGI8xViEplvVWaM8Y4iZrnvkAqIsAALCaTl+lRs=; b=pipyfQzZ8H/FeZasC+mWNL7jJITZkNrdii66wOLCgF9gUhDSsgzHwJs9jKXbYqaa1ZL M7kDoCW2Jqd+CG3VkBw7vOTJdN5tcywwBd9zBNOEEi0NVnU8cpS5v/jZSrUxvf7rhDxBT A/OCYPuYsy89RhaK//Qbc5vh5soXWwg9BDc= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLDup6E67mzuoNIBqD+udY= X-RZG-CLASS-ID: mo00 Received: from mail-lb0-f169.google.com ([209.85.217.169]) by smtp.strato.de (RZmta 37.9 AUTH) with ESMTPSA id i03627r7JEDTlJi (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 ; Wed, 19 Aug 2015 16:13:29 +0200 (CEST) Received: by lbcbn3 with SMTP id bn3so4115396lbc.2 for ; Wed, 19 Aug 2015 07:13:29 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.37.196 with SMTP id a4mr11558435lak.59.1439993609331; Wed, 19 Aug 2015 07:13:29 -0700 (PDT) Received: by 10.114.98.104 with HTTP; Wed, 19 Aug 2015 07:13:29 -0700 (PDT) In-Reply-To: References: <20150817123142.13418f26@csystems> <20150817131900.66906015@csystems> <55D1EE8E.9030603@php.net> <55D45278.5050005@telia.com> <55D479F1.5000408@telia.com> Date: Wed, 19 Aug 2015 16:13:29 +0200 Message-ID: To: Ryan Pallas Cc: =?UTF-8?Q?Bj=C3=B6rn_Larsson?= , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e01493c8a902e2e051daaa3f2 Subject: Re: [PHP-DEV] set_exception_handler catches all Throwables From: me@kelunik.com (Niklas Keller) --089e01493c8a902e2e051daaa3f2 Content-Type: text/plain; charset=UTF-8 > > I agree with this completely. I think the point here is that > catch(Exception $e) remains unchanged while setting a handler actually > catches more things now. Tbh I feel like this is an oversight in > implementing the Error/Throwable rfc and should be addressed now, otherwise > it can't be changed until 8 if I understand correctly. > The difference is that `catch (Exception $e)` can be found in many places, whereas `set_exception_handler` is a global per application thing. Regards, Niklas --089e01493c8a902e2e051daaa3f2--