Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100169 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62618 invoked from network); 9 Aug 2017 17:23:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2017 17:23:20 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.20 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.20 mout.gmx.net Received: from [212.227.17.20] ([212.227.17.20:55540] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/BC-34801-7054B895 for ; Wed, 09 Aug 2017 13:23:20 -0400 Received: from [192.168.2.123] ([79.243.125.22]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LikyX-1d53xB12Ef-00d12y; Wed, 09 Aug 2017 19:23:16 +0200 To: Nikita Popov Cc: PHP internals References: <643d48f6-033b-a8ec-1fd3-8f0bba475428@gmx.de> <67bd44f4-50cf-a74b-f075-a8345b82da10@gmx.de> Message-ID: <7cd281aa-0597-9bd9-513d-5d1c7d728e49@gmx.de> Date: Wed, 9 Aug 2017 19:23:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:mANiiL252NTmMC70RY8ocb2Tlk60nnUuh2s8sMaOU1GCjoqWqnO p8BVj4aZKh6YvZYu7ucH8HvclIZIa81CCUauhST1vGqGvKW4e1Dk8/uyi45OFKlmzLxAPLU QytU+UwSTlGsBEuqGZovR/NsGLawQQ+hMbKrYppXoEP8lFDB+676aHN05+4KMLEMMPWdBlR t2TJCdClfaFrjfg/SoqTQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:D0S9jEGei6c=:GyHGAPuTDw7QUwUrcYxQI4 +8pnM6ahUJajD/pYJ1ScXne5uQ8zEF4RlfgZqSxYgZSQbwIUvVHPcmzfLyO8yMJfC9Z2y5lJp Bwpi/a0kC6epq7vm+cpSLELm+V/GzhVH8KDoIwnaZ5Wnw7sZTdEZtkbyWIxYwh59gsmjKF8ot +hAKySg4GKCICKSU+VjKvpI+kdq3bG2Dvw703vJi75xkD91qelKuiVcGEtnK+a11zqxA0i7+p 0qt3bHAqGMKwJ0OYEk4Ui+pMWP38bAjk/E08Bfnu48pWcewA9gWsXV0VsObZNDr/0EvyPOcx4 7xmHaZMNkXPjxK6h3OxywYbckg/PL0nO8CZpcp8D/k9s60UgispV1gB4YGwfYz7L5VImIcKYu bcvHn8EvAD7RO/FDWcdG6u8/O5ylzOoOq+4KoVnXnFdei0+yePRyvqt1ddoxqp/hMnm50yRdG oO6wUK+iGWMZMGqO05LrY2VJ3vVVgJubm2cCDhRrEHDwo4KIpUD6UWtuEl+/fismFrI5kZy/P LaV2H47OobWRUoom/GQRthy0PHW7MDTbYys3kSa5T4mp4egu7W4Vk5tw/Wx6Ko2GpmbHxOVQ8 FPhKp8oWl4adBHkBNgOEebxovMBiIGNJ9RmecKglaA0sKdgqhRp9ganPQVWmH4qdicZO99Evt jIV5ouAvPtkykjFpULBXw2axKFv5TreuncizO+b8l/FyIX3PXaNDnNs+YvZUEDTgSiIAvsDB5 P4zhSZgFaYwvlnmvJKAF+nZgZND0beiZRfrHhFMjuaWxUcA48WDM8jrb7ZW1a/wF1wIGLj0ET 1b3DDA0hY7gZRCbm1LQxvVIIQOZvD5LCqzzsTX1GLFzujrsP3Q= Subject: Re: [VOTE] Deprecations for PHP 7.2 From: cmbecker69@gmx.de ("Christoph M. Becker") 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. -- Christoph M. Becker