Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97007 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17655 invoked from network); 18 Nov 2016 21:04:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2016 21:04:41 -0000 X-Host-Fingerprint: 92.109.82.130 unknown Received: from [92.109.82.130] ([92.109.82.130:4185] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/90-13918-4EC6F285 for ; Fri, 18 Nov 2016 16:04:38 -0500 To: internals@lists.php.net Date: Fri, 18 Nov 2016 22:04:33 +0100 Message-ID: References: X-Newsreader: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Posted-By: 92.109.82.130 Subject: Re: [RFC] Deprecations for PHP 7.2 From: phpdev@ehrhardt.nl (Jan Ehrhardt) Nikita Popov in php.internals (Fri, 18 Nov 2016 15:55:23 +0100): > https://wiki.php.net/rfc/deprecations_php_7_2 > >The RFC combines a number of deprecation and removal proposals. Each one >will get a separate 2/3 majority vote. The RFC overlaps with some recently >discussed topics (each, binary strings) I must have missed the discussion about each(). And this really surprised me: > The each() function is inferior to foreach in pretty much every > imaginable way, including being more than 10 times slower. But it is mentioned in a 9-year old comment in the manual: https://php.net/manual/en/function.each.php#75692 A quick grep in my Drupal7 source code showed that not everybody is aware of that. For instance, even the views module use a list() = each() construction: http://cgit.drupalcode.org/views/tree/includes/view.inc#n1740 This means that at least 800,000 sites use list() = each() at the moment. I am fine with deprecation, but this may be more wide spread than one might assume. -- Jan