Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124502 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 44B691ADA8E for ; Thu, 18 Jul 2024 22:52:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721343212; bh=KzCtsvBJrBBVzDPpdLbcIj1SRvL3gShFgbhWeMFl1fg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CCO12s276IdNYaXpX6KQ1YjjSE1bxMECx6rePCePxIAM8x4fBoa52OLHlfPRZh/2e kGK8ELGOikRW9oxzOPl+IMik8tLgOAcp8WvS0fgvE38KtY3ipCiNtXxg55HdsseRE4 yGfvPmyzAIxC5gxsnuOLjgwsKzOzD4EZT5mFijh/g5smyctnFteCNjxaJhtQPHVX0Y dtomIQZmw5JpcI7vgcIfNsG6nH5BfgoZfTcvTEAn+AOGe5S6Mp5Hic5cArwt3Bw2MB aU0QKgEZNGuXcbHWgB2ZHqxWoJx0EAv0ihZXpS2UfFWMuNC7nvkfH7J+RhJb8zUNPY vQdQLt9rO5Asg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 48D031801EE for ; Thu, 18 Jul 2024 22:53:31 +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.2 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 18 Jul 2024 22:53:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1721343115; x=1721947915; i=cmbecker69@gmx.de; bh=SYnOewlmyD7l8xWy/aWH7n/6/J9l/ZTcqZW+jUzs0TY=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=hvdVZ7eMSSOxN9x+W1aswF7f9h/ljKCfNkA1ZgsdyS8In3Ma4qHJp3yfK+ZjyzXG Q63QC34ZqmPy3RkkThPpibHoXRzJjF01qpZZd0CBTSSq1/u2nho3MQv9oWv/uow6Z /YCADrIj8n4OPENsGr+iqRaEXLbxvXRQiAuZGh9FnMvFwyaGTFNOHkl5ov1XmTPpn 6ehjvMHoaaHcfNaFQ2bIY6ArHe2p1Df1Hji9OuI0QfrhcZ2fWGO/w4hMIBoyhtNir phtJirNku/6HK25M4bhi3pe4cqXnngPbwyGDZRbGE7aJMuR7BDND0AqT1YVIPGNqc NFE4RtFLlLbKtNAm+A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.130] ([79.251.222.223]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MRmjq-1stQOX1UKY-00KKH6; Fri, 19 Jul 2024 00:51:55 +0200 Message-ID: <84999002-cff1-436a-8036-b7b4facb2cba@gmx.de> Date: Fri, 19 Jul 2024 00:51:56 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Request for opinions: bug vs feature - change intokenization of yield from Content-Language: de-DE To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= , =?UTF-8?Q?Marco_Aur=C3=A9lio_Deleu?= , Juliette Reinders Folmer Cc: PHP internals References: <66984FD0.5090805@adviesenzo.nl> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:e4f0uk0G1pf1IY7SG7hTH6HOKHbxih8T8bZXExBmof7PqOzt+1G tk+iMAbOpv2EYPJlsugP+GxzqSzF6Uj6OtTtt3JFjAeM73V71J+qTuQU3XLRr8b3/TvvRBs m3L98NvdNa5a5I87m11m6gZTgCNOlfZiTOVErHI8PnEDtvTrj/I6FVQTME4fy+OLI51N8TU iKKRkHe2QAbDdj9Omx4/w== UI-OutboundReport: notjunk:1;M01:P0:OwwPj0nAiBI=;DIQm/SULzkAlvxpjOq8tHIW5vPn FpmS9W1Q+pYLpg1qWURsMVWF/h5kvj3ZXetS3ru6kq8eQVd3Qf+Aff0A5AG7Mkv5koqOBqpNE VYkenajMnhppZ4dULDxDNsL76+AdOsZuuR524rZzc73XC7tsojGLF1nDxD0L7F9+ONJUsVHUe 9474i2j8ig/yHm7mFAjJaqrAUqDk/i6eUkHyRyyRman0CRjtRiQOQPawKtZwQ2NRlPB7nTdrX 0TO7YD9/Aw06aNuDGciX6VukxD4WuDG3pSs9LqVL2CbQGnidRHUaPnphqjO3U2LTDkbEpyGBY srdOKUISqhtgtWc1MoMhlGTBi/WblSDMLxODFyy/C0C9AOqIh090C3aTSVkPESM4j9Zh3IXUn mjSy9SplXY9hoHMl1c5tFdh0nKxpm5FSC0dYJTbwOtJ/RBHKRBVKtNcf4HsrrfLHmP2eudBbX Aruc+nCq5YP4XRAT20sf+jeIUZHeCJl14XSDJwxn8bFVeNMK169W37KeNE/jVVXC7jHtqmft6 ls01Nu+aJdVUS1IxL1Tfdieb0REpLffSknaNF6bV6XD3FNMQ5nnA0NIJ19jQUXeB/Fy26bdzL 90PFgHc9nRNvr5UGPcxaryIv3XWDHdNqtel1MNqKe1uPqZSeWRoZrkXFo4RwYV4yHzq2120Dy nG4aHySLGsDtUnWVWy/Je90PvGDMzQvm+2w6xSFVZzY1km6hlRFx/HOTkkzq3bHf4IjkAe7Nl +bEoWTOsuEKJBYfM+/VdUJf4kzvIiS9CwRKr15oUzkj2xCH97ZGnDb2eR3bR0WQ35op9E/Ofz bdte+fJ3xtTEQQT3em3Uhdow== From: cmbecker69@gmx.de ("Christoph M. Becker") Hi Tim! On 18.07.2024 at 21:05, Tim D=C3=BCsterhus wrote: > On 7/18/24 19:48, Marco Aur=C3=A9lio Deleu wrote: > >> Forcing all tooling that uses token_get_all() to handle this >> unintentional change seems to generate more unnecessary and real >> busywork for something only theoretical possible to break. > > The tools are required to handle this either way, because there are > released version with this specific tokenization and they are not going > away. Well, these tools could reject such code, and tell users to update to a version where this is no longer valid syntax. > Ubuntu 24.04 LTS ships with PHP 8.3.6 and generally Ubuntu backports > security fixes instead of upgrading to newer patch versions. As an > example, Ubuntu 22.04 LTS ships with PHP 8.1.2 + security fixes, not > with 8.1.29 (which is the newest 8.1.x as of now). > > Thus the ship has effectively sailed due to the inclusion in Ubuntu > 24.04 LTS as the arguably most widely used Linux distro. I have to agree that this is a strong argument, but I don't think we're absolutely obliged to stick with what have right now. We still can claim that we've made an unintended behavioral change, aka. introduced a bug, and fix it =E2=80=93 downstream projects have to deal with this (the = same as we may have to deal with unwelcome upstream fixes). And frankly, how much code would be affected? I mean, does anybody actually put a comment between `yield` and `from`? Is there a case where this may make sense? "Because we can" isn't a strong argument, in my opinion. Cheers, Christoph