Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124534 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 830D11A00B7 for ; Sun, 21 Jul 2024 11:48:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721562607; bh=U4nyF3i5Ti1VlXSGSpKKJ0m/rv+8UOWdTvMZQKuH5UY=; h=Date:Subject:To:References:From:In-Reply-To:From; b=H23h8qp8jZoJygKyqjP/D3rrO1Nm9u8k4+BFZGblFWok2UR/BMrWJ1dDv7YyeYBsP yfn3xn/JYBHrhFwFPDGNJpln9NBiUyhr5y06Q8JwcOk3HmsCY9OKAtLET9hwweRZRN MBzfxJTOfTUBbL19RXMcl+7kB2mWU3B3LdBU0/Z8Y24PmJJmUhftWQQhUEEYRsGaWI pglkUMcg4d8lOYRXdzmSpXc4L5kzPALiy0i48nlVvPAGreoWw+olC/SgyXHWzsFdJN alWAdc544rZhC6s4MA3c79wFvWNRQrdQTrUIicL+hbz7zZmusC+NDiA0scFb/OPbPC nydmpj/SyElEw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2532C18003A for ; Sun, 21 Jul 2024 11:50:07 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 11:50:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1721562513; bh=/KOyKpziJWXafq8RMwLkGOVUODY3AVWLaB+fy/BV1Ls=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=hd8nlHpRyvL8HYdM3sycuYfEoUt8xltVOfZgfyexHk2Zt+l/JwEnEIwEhdlrAZExy GlZHd68mnMNeyl6Sqx59KtWOBJ6Id3u7ovSfsYLmnN/+lOnx1cTmemK+ZBqLpHoP7v DO36G5TWArUbWQ4LPsASBlAvSn9exRUeoBoMkJ+UKwWFC6c4T3QfiZxhpk6ONSGaka cJTKmRUzDgL7GN7buitfeiV3aRkXKM7GywmHVHZezsb9vtKCfvogP7Fd1SYrb6SO4/ SXZKbHiwAFtV1MeJA7HNCrCYxn3z3mYgshDRVy8wSa63jBeYfPNjF7e3vrktCvrpr9 63/VBr3KkTkhA== Message-ID: Date: Sun, 21 Jul 2024 13:48:32 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] Request for opinions: bug vs feature - change intokenization of yield from To: Larry Garfield , php internals References: <66984FD0.5090805@adviesenzo.nl> <6699F817.8070806@adviesenzo.nl> <9571bb82-9873-4319-9bd1-0361748335be@bastelstu.be> <669BDB00.70507@adviesenzo.nl> <669BE870.2050908@adviesenzo.nl> <86865df3-999e-4811-83de-eb35f7db167c@app.fastmail.com> Content-Language: en-US In-Reply-To: <86865df3-999e-4811-83de-eb35f7db167c@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 7/21/24 00:16, Larry Garfield wrote: > Yes, any syntax change means tools need to adapt, but that doesn't mean tokenization can change randomly and accidentally. Syntax changes require 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 breaking something for someone are vanishingly small, and it's a bug, not a feature. If we want it to be a feature, we can make an RFC for it. It has become a feature no later than November, 23rd, 2023, when PHP 8.3.0 has been released. There is no bug, token_get_all() still is working within its specification. We can't just break backwards compatibility with well-formed PHP scripts when it causes an inconvenience for tool authors and at the same time bend over backwards with an impact analysis to find out if the deprecation (not removal!) of a property that literally always is null would be too much of a backwards compatibility impact. The PHP users writing PHP scripts accepted by PHP 8.3 and visually fitting into PHP’s syntax with regard to comment placement are not at fault here and shouldn't bear the consequences. Best regards Tim Düsterhus