Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96656 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38887 invoked from network); 30 Oct 2016 17:06:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Oct 2016 17:06:14 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:36334] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/34-25911-68826185 for ; Sun, 30 Oct 2016 12:06:14 -0500 Received: by mail-wm0-f48.google.com with SMTP id p190so107200829wmp.1 for ; Sun, 30 Oct 2016 10:06:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=GJU9QA3RO/VciWagC9IPudSGKkDqxSdQWxN242/RNnc=; b=De0ZZeB77O/oTLTX2Quss2x//c+atshFGbI7MksHKnSsGWuEXNESaafvUUNqxejxHb 1ZdA8x/fcUPHpSNqajRsp5fziL6RxQtLgBiHpAo1zWuhWySOeBcTDtXr8hQKDGecxwO3 FO5ooe7WMAokes3YCTFx1zZCeUYcqpBNUUVRcEY5T6T0/Sg26L3bTIF9xum5zhacPnbT I5s0fNZlJz7pr7M92cGlxS8u6LdFavFISp2palvStM4OdMeKMy+0E+0mnsQWxws/mbZn nrqUYz8FNeiIVaz9GRfWuF5jVn+ru/HDkyHLM3T7Je2cRBNRBWV+ATybwjc1He4DYACY Wbvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=GJU9QA3RO/VciWagC9IPudSGKkDqxSdQWxN242/RNnc=; b=G3Df4sWE4+qppeKACEF6J3PglmceffFeIVu3dY8DYjYWcJ95m/B7EQawLge+f51DCV DdZ2qLN71oWpvPps+E728+fnXr5Dv6r3nis2FQw0UQ3nTv9zVPWszCvYrq/5XXh7O96T Ih19w4eEeCaYI1bjbpHNOdZWyhWGmqRicSFFVFiCLg/0IUIpgnYx7Nv6z6BEPFq1BMx5 UW34NlsNW1onup89zNp3NVsCfRgXMSoPlFMFt64Z1mYAiScG5l1Z2JPMPKsgdi69QhhS /KMqZhiKTdfL2dxPoLlY95xS2d1cuvvHUPC86DwNax2/mZCBEOv9h5a4rJf866bBkQ4Y g0Cw== X-Gm-Message-State: ABUngveEqHujFX6QhGsaJyy9wYFYq4boeJtk2rx6lIhybQcm/wcKfLhxyQXALtM9Vew+2g== X-Received: by 10.28.191.92 with SMTP id p89mr6874074wmf.114.1477847171100; Sun, 30 Oct 2016 10:06:11 -0700 (PDT) Received: from [192.168.1.5] ([95.148.161.240]) by smtp.googlemail.com with ESMTPSA id au8sm25448034wjc.12.2016.10.30.10.06.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Oct 2016 10:06:10 -0700 (PDT) To: internals@lists.php.net References: <44244cfd-c8ad-e0a9-4e70-380a8a8c940c@syberisle.net> Message-ID: <32a4b043-4a65-7004-1419-48d12f5cdbca@gmail.com> Date: Sun, 30 Oct 2016 17:06:08 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Allow Iterator to be used with current, next, reset, key functions From: rowan.collins@gmail.com (Rowan Collins) On 30/10/2016 04:31, Pierre Joye wrote: > I also think it is a good thing to clean up the ways to work with > arrays or iterable but we have to be very careful how we do it. I am > not sure an actual deprecation is a good thing in 7.x without breaking > any kind of tests out there. Indeed it will not break code but it is > rather bad to break tests and it is a very annoying thing to do while > trying to be good at using the latest PHP version. I don't follow this logic at all: isn't the whole point of deprecation notices to make people notice them? If people run tests with E_DEPRECATED active, it's presumably because they want those tests to tell them if they're using something deprecated; if people don't want the deprecation notices to break their tests, they can configure their test runner to ignore them. So who exactly is helped by not including those notices? Regards, -- Rowan Collins [IMSoP]