Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124531 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 798CD1A00D4 for ; Sun, 21 Jul 2024 11:25:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721561227; bh=WpEmILrXvIDQaGwNTzZ16hXUzaaUn6/BfDiKWXoAgo8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=PbDbHkYrgmVq2wnPsBa1H7Xv58Jo2tsw4EYFhBE+yBhFY5RS5Th+Z4uu4oDt5dA+o nvHrezRyFFTg/QT5TiQI2hONEcjb1q2ciSMSv2Gn+iqa0CqjibTDokM3Zf33k01m8o mPf/8R6er9LU6SJFxLXV/j3Sxw+EzzE0SuyKmHNsRfqxbBifKCU2TJZmxTXEFxSNaL UEnx2Tr1zvmbsfGGuvwGqW9X3PJbIMeFoUBz8Wm5SQ05l5iyr7Q0M6Je67ap2+35fp XQhaSYken7J3/rNMludV8FlzaM4kCaw0wZbF7GqIdUqjzK2AOmy5yD2VKRyNvLnNkg WUVgUnyeQuCIw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 40E75180084 for ; Sun, 21 Jul 2024 11:27:05 +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:27:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1721561129; bh=KIaHjV2RpVQxoI27tNvVC4lcXMd/gH1COGJkbzLd7Lg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=dgIKkdmWVyCEG7j/76gOrJzsg16vJwbuNbv71PqVWUv6MV1OTpxaG0G3Kz44PWGhZ tVbCvuON/zd1Ge23IGN1Dzzo6ZizPI/oc7QRBrpSXrpemRCpCFkilm2Bz7Lwg7FnTM DKeNruTLlLN6VzmWJHebNQaexYQWf1+zmXuK7pJf0xLGD289Aj2ItZIvjlnQPd6hYb iNdV72a6KA9KeSdk8H6H1PCWXmMYJtMj7oHO34j88C+zjUbCcardxO/4ANcJENRtcB W6y2lxeoaDyTniyhNU2dwDQSvr1tR+7YeSF+GC6jn7xYyod5NTTZTNk2XdwNX1ns2P r19YfvxN40TSA== Message-ID: <86eef5d8-6ffc-45e0-8ed6-6201a414cfb7@bastelstu.be> Date: Sun, 21 Jul 2024 13:25:27 +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: Deleu Cc: Juliette Reinders Folmer , internals@lists.php.net References: <66984FD0.5090805@adviesenzo.nl> <6699F817.8070806@adviesenzo.nl> <9571bb82-9873-4319-9bd1-0361748335be@bastelstu.be> <669BDB00.70507@adviesenzo.nl> <669BE870.2050908@adviesenzo.nl> Content-Language: en-US In-Reply-To: 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/20/24 20:14, Deleu wrote: > Is there any evidence that PHP users are relying on code that: > > - Was released just 7 months ago > - Was not documented > - Nobody knew about it until very recently That is the wrong question to ask (see at the bottom). > And furthermore, why should undocumented, unintentional, unapproved change > to PHP be supported? Even if a handful of folks come to PHP's issue tracker I do not see an issue supporting this from PHP's side. The issue was raised by a user of PHP, not by a PHP maintainer. The change has also been explicitly acked by Gina and Christoph before Ilija committed it and Bob also participated in the PR without raising concerns, so it's also not an unapproved change. The fact that none of them anticipated this side effect, doesn't make it unapproved. > to complain, the answer is plain and simple: that behavior was not approved > by PHP's RFC process, which is the only way to get a behavior change > introduced into the language. Realistically, it's highly questionable that This is false. Small self-contained feature additions do not need to go through the RFC process. This is generally understood as "no one requests an RFC being written". The deadline for such a request is not defined as far as I know, but I believe it would be reasonable to assume that it implicitly is no later than the release of the PHP version in question, because otherwise any feature added this way would be at risk of arbitrary removal. > such hypothetical users would even show up. > I agree, but you can't say this for certain. Weighting "breaking end user programs with a syntax error in a patch version" vs. "a power-user function emits unanticipated values in a field containing free-form data, but still follows its defined specification of emitting the token stream as PHP sees it", the former clearly has a much larger possible impact. Best regards Tim Düsterhus