Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124527 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 2E65B1A00B7 for ; Sat, 20 Jul 2024 22:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721513889; bh=rzR0I0EGppMfEyhS5Agp18tDHewdsg/xBkxbjI615wY=; h=In-Reply-To:References:Date:From:To:Subject:From; b=FkWYRM0x1pmSMDVMqSEzkfbFGghmaCx454gC20vDHOq6mNXexmtCDnNlmiQjSDRbv NwwkxcN7EczB1g+cji84AQ+7xjwi+ZK6pIxGOosS45dn4s1Ffu+NAg75uK9XRIgdji P4SPIiS7F0mbhSMzahT/bmafPuKAgZsH17FdkpbzE7ibJef8150eikwZi6uGvIMeQt nJltNccstE4sDyN0q7W4Gr8GqRuLlFg3b4BdyYOrTKKnmQ+1ltYl7X5Fy0cJ8J2Agk cB9+82ZpA1ArbasFzv0FGgb5wyFx3jbhiLSwN0EKfMFiPID6LkBV0lsKsDAoySBILx khhyjp9tRSJag== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 693C3180048 for ; Sat, 20 Jul 2024 22:18:08 +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, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh5-smtp.messagingengine.com (fhigh5-smtp.messagingengine.com [103.168.172.156]) (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 ; Sat, 20 Jul 2024 22:18:07 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 544C311400F4 for ; Sat, 20 Jul 2024 18:16:34 -0400 (EDT) Received: from wimap23 ([10.202.2.83]) by compute5.internal (MEProxy); Sat, 20 Jul 2024 18:16:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; 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=1721513794; x=1721600194; bh=xcQfZTQ+q3WFRI9bxbPgA s1qkIPQJpkh8Nt/DYtwp+0=; b=llFO3ECKaPVQeDLNq82Im4JBHf00f7ver3E3A sc5UObbdxSXr7hI7D7XgvlR/dA7upHntXkASjmEMIHvW04eGY0xvMqnT/tvFIhwt rva5ejWzKg5lkMqkSCBStVi9Lnb6jnQ0AuCtdbfaM6quhk6GJQWNlNT0LPuDq4Xr uog54p4DcgAfnlnNmiwA6fmAJiwBgpE7hmZmlauppi+HBl1Fgdf33PFp+rCGskjk Pw3G4o357a/YD6T2bpHkjvs0DncRs6R2DDQYHk3yo4NGKcLhaQO5Qwverfk2bwWL yaezzNQu4u+bpj97v2us/xRUPCNI/6x/8mdiOvBkoqOs4wa3g== 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=1721513794; x= 1721600194; bh=xcQfZTQ+q3WFRI9bxbPgAs1qkIPQJpkh8Nt/DYtwp+0=; b=K vWt8DeBOp7miE9sWeaL9KNPss49Cb2+IA9+ARTdO5zyqvaLlgJsB/X7yS3ry1+Aa EOFMu6zvMQV1VlnNsTybXazWi+3jG6K/cjLOhzzylg3CKZQbA9CguIUGxqyJqPLn KryFAjzjJEjqtyt6XS1aAiiLV4Dosi2DlgKFK+wMJ5oqZooBIsg9LX3HLzIp2iHX cbxW+gMUB1dgaTRVyc+c/tWBtV6E+u42rKaY0uSEHuVzDo6wbZ9AvbeuYcGvD5Jg 6U5cSHtLKetYCNljjgstB+BCHKLBwRdfQgMy8BEHdsXOh7/tTEonCHTvR6kwq7tg WiVe9ohSPz8PiaFPtmOuw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrheeggddtjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeffffffjeffudfggeevvdeitdetvdfgjefffeffjeel feejteevheeghffhvdfgleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D392F2920062; Sat, 20 Jul 2024 18:16:33 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-568-g843fbadbe-fm-20240701.003-g843fbadb Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Message-ID: <86865df3-999e-4811-83de-eb35f7db167c@app.fastmail.com> In-Reply-To: References: <66984FD0.5090805@adviesenzo.nl> <6699F817.8070806@adviesenzo.nl> <9571bb82-9873-4319-9bd1-0361748335be@bastelstu.be> <669BDB00.70507@adviesenzo.nl> <669BE870.2050908@adviesenzo.nl> Date: Sat, 20 Jul 2024 17:16:13 -0500 To: "php internals" Subject: Re: [PHP-DEV] Request for opinions: bug vs feature - change intokenization of yield from Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Sat, Jul 20, 2024, at 11:51 AM, Tim D=C3=BCsterhus wrote: > Hi > > On 7/20/24 18:40, Juliette Reinders Folmer wrote: >> Tim, you're making my point for me. This is *exactly* why the current >> change should be reverted. > > I am not sure how you read "PHP users have no idea what a token is" as=20 > an argument in favor of reverting the change, because reverting the=20 > change means that completely reasonable code suddenly stops working wi= th=20 > a parser error in a patch version and PHP users will rightfully come t= o=20 > PHP's issue tracker to complain. > >> And not, like it is now, an undocumented, random change creating an >> inconsistency in the Tokenizer. > > The tokenizer is doing the right thing: It tokenizes the PHP source=20 > code. It is absolutely normal that PHP first and second-digit updates=20 > make changes to the token stream. New tokens are added, old tokens are=20 > removed, tokens may appear in places where they previously could not=20 > appear for well-formed PHP programs. Tools working on the token stream=20 > need to adapt and this change is no different from any other change to=20 > PHP's syntax in that regard (except that documenting the change was=20 > forgotten). > > Best regards > Tim D=C3=BCsterhus Yes, any syntax change means tools need to adapt, but that doesn't mean = tokenization can change randomly and accidentally. Syntax changes requi= re an RFC. If an RFC passes that necessitates SA tools update, so be it= . (That happens almost every version.) But that's still an RFC change. I would agree with reverting this change for now. The odds of it breaki= ng something for someone are vanishingly small, and it's a bug, not a fe= ature. If we want it to be a feature, we can make an RFC for it. --Larry Garfield