Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116351 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 5276 invoked from network); 14 Nov 2021 18:55:33 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Nov 2021 18:55:33 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6A29A180384 for ; Sun, 14 Nov 2021 11:50:03 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29169 217.70.176.0/20 X-Spam-Virus: No X-Envelope-From: Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 14 Nov 2021 11:50:02 -0800 (PST) Received: (Authenticated sender: come@chilliet.eu) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 80FBB60002 for ; Sun, 14 Nov 2021 19:50:00 +0000 (UTC) Date: Sun, 14 Nov 2021 20:49:58 +0100 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net Message-ID: <71116B29-FA48-4216-BD62-6D49AD20F342@chilliet.eu> Subject: Re: [PHP-DEV] Re: Unwrap reference after foreach From: come@chilliet.eu (=?ISO-8859-1?Q?C=F4me_Chilliet?=) Le 14 novembre 2021 18:13:18 GMT+01:00, Nikita Popov a =C3=A9crit : >I have ultimately decided to withdraw this proposal=2E > >Regards, >Nikita This is sad to hear, because this is a really big footgun, which has hit m= e in the past=2E I ended up adding a codestyle rule forcing byref foreach t= o be followed by an unset to avoid this=2E I understand making a special case for one syntax and not the other is uns= atisfying but I was hoping for an other outcome=2E C=C3=B4me