Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124542 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id AAFDD1A00B7 for ; Sun, 21 Jul 2024 20:55:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721595412; bh=+5hRZgVDPf1PtdPNY1AHoPhRrnXTE+AgpvA9euwE3QI=; h=Date:From:To:Subject:In-Reply-To:References:From; b=k3FzZyiyhuGa19pRJ6L5sQdjslBozu7A97UeB655C248XHLHxTV5TA84QHzu2De4L JjVg20OOETMLcaAKTGbNvhR6r4gOFjeodW4YlBd/UVrmVRQ9oE1erEkrc4YVP3RrtM kF84pEZV5NITdo46UKvP9FRssUHQ1cD3CVpdfityqmsA+0HfQtLxUeI55JPIC8nNm6 GXY3zfZvANFIczhgWC7lqi2kIUgDVB+LslYXjcUE8AqFChyqkBjfm+R8e4s3GUrQtd L/nCGWCmsOZsINnhErCVRCJKa6RLSznQTgChwullJZ5VnKF45KzShg8xDuOgjIcYUs acAlmdlMN+INg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 027F318003F for ; Sun, 21 Jul 2024 20:56:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh3-smtp.messagingengine.com (fhigh3-smtp.messagingengine.com [103.168.172.154]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 21 Jul 2024 20:56:50 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 36E6911400A7 for ; Sun, 21 Jul 2024 16:55:17 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 21 Jul 2024 16:55:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1721595317; x=1721681717; bh=+5hRZgVDPf1PtdPNY1AHoPhRrnXTE+AgpvA9euwE3QI=; b= aOM3Wl/B/AnYD+shURG6TMmvzVl80pHpCg+HuHGfqNJjWC0DyoINKbrEEtwJzH3o mSXgBHlPnCxz17LTCv7qjd8gbljuStclHzeyHVfEEd6LXS1Ged/ZsFsMDFr93iYZ yzYRcseArhwruGHfk1GZGPf5WVw6H1vJxv5Iu8wXy809i7W5ljPnSIh0MHnI4CTY iFiql+vbwpuCzFG6JVLDw2G7EwXyROj/PcbkVUgiEQleL5hBmZNOTodQN16o27rC Rr7hQFBIpNzaMaaJYdSN5JGswa1slbhixMLN9V9R22rvQ8zUAGk3xXdt3BlfQFQ+ NpZbRyzkU4yPuSMEiYCqww== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1721595317; x= 1721681717; bh=+5hRZgVDPf1PtdPNY1AHoPhRrnXTE+AgpvA9euwE3QI=; b=R wis4uOmcOT83s7ZwmMQ+tW4jVpe5STZ52NshV5HMW7ZG2djlR+361lS/CfIUXKwZ Gz8pH2sQI0fLIkD36lis1uyJodLpGIiG9SPWP9z+L8skTuLbc84lQRfspyc+Wkfy ciuOWlntjirdN/o6g/6Tl4Am6vx55dKJaE3TBJeLK86sjYiSl3jMMoEWJHVbsir5 Qx4TddbRdgmfODj2nEB+TMNrozgC8tNeGhWPppCfY5SM5sKYtaUxMDkN6UfuGZXi 9LpM83n/ezbzzsMMT7k/sDFhSzBIDfPPRmQXVTGPmOmFsPSWNiRtLTrN9QNHf7x/ BSlgZITw/qw81RILUMhmg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrheehgdduheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvufgfjghfkfggtgfgsehtqh hmtddtreejnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhnshculgfkoffuohfrngdf uceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenucggtffrrghtthgvrhhnpe ehleffteeigfevudetfedugedtudevledugeeugeelheeihfehgfdtkeevvefgleenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehimhhsohhprd hphhhpsehrfigvtgdrtghordhukh X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 21 Jul 2024 16:55:16 -0400 (EDT) Date: Sun, 21 Jul 2024 21:55:12 +0100 To: internals@lists.php.net Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_Request_for_opinions=3A_bug_vs_f?= =?US-ASCII?Q?eature_-_change_intokenization_of_yield_from?= User-Agent: K-9 Mail for Android In-Reply-To: <669D5467.4090103@adviesenzo.nl> References: <66984FD0.5090805@adviesenzo.nl> <6699F817.8070806@adviesenzo.nl> <9571bb82-9873-4319-9bd1-0361748335be@bastelstu.be> <669BDB00.70507@adviesenzo.nl> <669BE870.2050908@adviesenzo.nl> <86eef5d8-6ffc-45e0-8ed6-6201a414cfb7@bastelstu.be> <2C00EB00-0BA4-40F8-92A5-50B49A639AD6@rwec.co.uk> <669D5467.4090103@adviesenzo.nl> Message-ID: Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 21 July 2024 19:33:11 BST, Juliette Reinders Folmer wrote: >The crux - to me - is that it is an undocumented breaking change, which b= y definition is a bug=2E There are two parts of this which are bugs, in my opinion: - That it wasn't documented, e=2Eg=2E with a line in UPGRADING listing the= affected tokens=2E - That the tokenisation consumes the comment as part of the token, rather = than just performing a lookahead=2E One is easily fixed; the other is more subtle, but maybe fixable=2E >As I've said before, I'm not against changing the tokenization, what I'm = speaking up about is that it was done in an inconsistent, semi-random and u= ndocumented way=2E As others have said, there is nothing unusual in the process that was foll= owed here=2E A minor change was proposed via Pull Request, discussed with m= ultiple core contributors, and wasn't deemed significant enough for a wider= discussion or RFC=2E The documentation probably *should* have been caught during that review, b= ecause it's a common checklist item=2E The behaviour of the token stream co= uld have been, but we got unlucky and nobody thought of it=2E There's no gu= arantee that a different process would have done better - there have been c= hanges which went through a whole RFC process, then a year later someone po= ints out a flaw that could have been avoided; that's life=2E Now that we have spotted it, we need to decide what to do=2E Regards, Rowan Tommins [IMSoP]