Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90518 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78608 invoked from network); 11 Jan 2016 20:16:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2016 20:16:18 -0000 Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.217.171 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.217.171 mail-lb0-f171.google.com Received: from [209.85.217.171] ([209.85.217.171:35511] helo=mail-lb0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/D6-40147-29D04965 for ; Mon, 11 Jan 2016 15:16:18 -0500 Received: by mail-lb0-f171.google.com with SMTP id bc4so260073536lbc.2 for ; Mon, 11 Jan 2016 12:16:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=WYZGU7WGfVqARheZWRQVooesjpTmYfdXc26sjh4+IuY=; b=jnPFv9Iy1V4qvx6lsDaOTyx2tjeOm3gTwIRefez4alupp1PLV45Mw/NOOVuSE13l9p wRA4Lqata4Zh+6WWxBDQgE5IgAMh0DIFmYtcmHTi6OJsOlBxSoicq5Q06Zl1FgUj9hGu qJMa4fIkNkvOrPbr0tCugNx0C9TQwrW4hyGXI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=WYZGU7WGfVqARheZWRQVooesjpTmYfdXc26sjh4+IuY=; b=WZldwOEH6bBWGd7a2yxa3Zi6Ht9EktDBGevNCw/k/k892AusL7JmLHXwkq9aBKweHp 7VcqGpTKPdy7djS2BRXZQVaUncFqlpKz8jSQl3E4QIMeYlA34wW6aQu47z0JfLG1/nqM nftXGiA8mSi6vKRpEdjSJQxBz5KvWPKtdv2hnrt2pBplgqKAmOmPic4rRMzjcr8U3up+ d4kYiuvoRzSSyhQvHV0aqDvqfIxeIYXw7epY8Hsk6PH7sSwaWfPyryPV3kH4wBlLJPt9 AdMG9jhq7IPC3i8ZCZEWmNnNsW++yBtM4WxhjAttRzdsTA+ZOj1qLrOiDbHKJh3/SSWQ lZEQ== X-Gm-Message-State: ALoCoQkGh2jq/lGud1y+ZoDZOz6nML2+WeL3ZFR3A6vA8vnWThcvqYA3lj72iyepuOlyTUO/RWXrCeIBvCDlHntzUUad6lC+Eg== X-Received: by 10.112.135.39 with SMTP id pp7mr8312589lbb.43.1452543375593; Mon, 11 Jan 2016 12:16:15 -0800 (PST) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.25.24.210 with HTTP; Mon, 11 Jan 2016 12:15:55 -0800 (PST) In-Reply-To: <5693B6BB.9020607@gmail.com> References: <5693B6BB.9020607@gmail.com> Date: Mon, 11 Jan 2016 12:15:55 -0800 X-Google-Sender-Auth: n4Lla3Q-PsQGIEka6P0ZDMRRnXw Message-ID: To: Rowan Collins Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Throwable and Error exceptions break existing PHP 5.x code From: aharvey@php.net (Adam Harvey) On 11 January 2016 at 06:05, Rowan Collins wrote: > Since set_exception_handler() is intended as a last-ditch "something's gone > very wrong" function anyway, I think it receiving all Throwables makes > sense, even if the BC break in your scenario is unfortunate. Agreed entirely (as I also said last time this came up). I also don't want a third path involving a set_throwable_handler() or similar; we have one too many error handling paths already. One problematic thing that we _can_ help mitigate is that the first section of the backward incompatible changes page in the manual starts with the changes to error and exception handling, but never mentions this specific issue (type declarations on the exception handler breaking). That's entirely my fault (I've mentioned it enough in conference talks that I guess I thought I'd documented it, but hadn't), and I'll go fix that now. Adam