Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100197 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74343 invoked from network); 12 Aug 2017 18:40:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2017 18:40:20 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.47 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.47 mail-it0-f47.google.com Received: from [209.85.214.47] ([209.85.214.47:34722] helo=mail-it0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/CD-34801-39B4F895 for ; Sat, 12 Aug 2017 14:40:19 -0400 Received: by mail-it0-f47.google.com with SMTP id m34so5933013iti.1 for ; Sat, 12 Aug 2017 11:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=irMs/jlVxpOvYZ0fgGE5qtsJq9BVX1SvxujeZEMyBW8=; b=OQtZFNZRbfTbk63kjP+3sawjy7fR9oVoC/lR45UJCaBbzleBAjFXDG904mqZr+pSiu 2HbVDacUc8OW0afxjf5u89xNJ5sZ/9ZStvQV0ykW9nuUUWPSEQYOYzmaWNf91GVDEafK SwsEAtNmL5WeroJnVejHr1ohS3w3tqCQrlyr0NwNOQMFMf78lfrcHCub3PqEv6zSGa3b D/hCXy5drLER1WavPRe67qhKSbVXD9RnkkKQMFMNo6ivne/WUwb3zHtcmSG9jPUeYn2q kExbRgagZFUuGX1GY30XzUbL5pbnZhhvqafQxDsGSTVC0W2fq26+meZkWLZRXNhrjx39 lE+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=irMs/jlVxpOvYZ0fgGE5qtsJq9BVX1SvxujeZEMyBW8=; b=lV13Y7e9jDEYnKxwLSzL+WM9pmGzljFx6Eva/I1PnN0nAP1f2ZYLc+TDXLlRQRioPM qyMaRGKGgcCAq7GkFtZzd9y2YByEGflUnaRvX365g96EFeYYXNkSh46jOrEHNfW9szJx o85GQNQtww9veH2y+ecSUCySZXEtglAuKcSYXpo1K/fWiPKGDeqd8niwjUbBJRWDpee1 +rN045gvXh6W1NqW+vlNydgcBgVVlyBOwzkiU1/GhsNbwIueNyjOWJ7IFYz2/BtEpct5 w7nV9eMWLkA29fjOpovulUc9xIrkicO+6DTmK34lcKhPHvmQn1xDxwNkGmEL84bXiQbM xiBg== X-Gm-Message-State: AHYfb5gYfYsgt/xKtvGM0sUuTOofFHaQ2uAVKlzIBK+dXq+iHCzFIgVT EuGAX9EkE8W5zGpBbfmWLYUit1cXXw== X-Received: by 10.36.54.13 with SMTP id l13mr1928718itl.0.1502563216719; Sat, 12 Aug 2017 11:40:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.13.3 with HTTP; Sat, 12 Aug 2017 11:40:16 -0700 (PDT) In-Reply-To: <7cd281aa-0597-9bd9-513d-5d1c7d728e49@gmx.de> References: <643d48f6-033b-a8ec-1fd3-8f0bba475428@gmx.de> <67bd44f4-50cf-a74b-f075-a8345b82da10@gmx.de> <7cd281aa-0597-9bd9-513d-5d1c7d728e49@gmx.de> Date: Sat, 12 Aug 2017 20:40:16 +0200 Message-ID: To: "Christoph M. Becker" Cc: PHP internals Content-Type: multipart/alternative; boundary="001a11405760c9268a055692c2f6" Subject: Re: [VOTE] Deprecations for PHP 7.2 From: nikita.ppv@gmail.com (Nikita Popov) --001a11405760c9268a055692c2f6 Content-Type: text/plain; charset="UTF-8" On Wed, Aug 9, 2017 at 7:23 PM, Christoph M. Becker wrote: > On 09.08.2017 at 17:42, Nikita Popov wrote: > > > On Wed, Aug 9, 2017 at 5:23 PM, Christoph M. Becker > > wrote: > > > >> I assume that the $errcontext parameter of error handlers will not be > >> deprecated in PHP 7.2, but a later version. Would it make sense to > >> already document that the parameter shouldn't be used anymore (aka. soft > >> deprecation)? > > > > I'm not sure on this one. I think it might actually be preferable to keep > > this as a documentation-only deprecation (and then directly remove it in > > PHP 8). I'm not really happy with the proposed action from the RFC (even > > though I suggested it myself), both in terms of behavior and > implementation > > complexity. There's a number of fun edge-cases there, like a __call() > > method being used as error handler -- in that case the formal number of > > parameters is 2, but more might actually be used and we have no way to > > know. I don't even know what's supposed to happen in that case under the > > RFC. > > Thanks for the explanation. In this case I'm fine with a "soft" > deprecation, but it should be mentioned in UPGRADING. > I've added a note in UPGRADING in https://github.com/php/php-src/commit/b202587e099312e433c123331bb5fece94ec9670 and moved the RFC into the Implemented section. Nikita --001a11405760c9268a055692c2f6--