Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118510 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 98493 invoked from network); 26 Aug 2022 14:15:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Aug 2022 14:15:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4A1FB180545 for ; Fri, 26 Aug 2022 07:15:13 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 26 Aug 2022 07:15:12 -0700 (PDT) Received: by mail-vs1-f51.google.com with SMTP id c3so1764607vsc.6 for ; Fri, 26 Aug 2022 07:15:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=P0PSbslqRhbm92FS/28NgJLRW7kb/2E94wCbCRtS7HI=; b=fw8CuXXqgYWRZYy21yWTiFAyGPszCtSB1wZqHA1q6wPGHX4xpTFAWpOR+9319R3+OV xm0HuNZmo/oaVHgG8ySTlBdpnXa+DhfSaV93tlngjVnKazTNH3EfAPrPePEVbdm6Q5UB LQPLA/PofVyvR4JiCU1Dfo2kdcTCkfRgjiDePCY7zsJ1RBS2ERr14eXQpT6gt1cdIIMu tpx46vJ/8BLspV1lOHF6flLwUAPDPNOi2v2CZ22cX8Twh29CZIduU1PxKEd71anM4qsx C1WI39YsRmT1JXKnlIuAfd+v0Kz6yirR4w+dfyW7IANhIGWqZenO74RlgUlOy1msci2t 127g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=P0PSbslqRhbm92FS/28NgJLRW7kb/2E94wCbCRtS7HI=; b=YVNiuM3cSkMMWBE1A+ekU6KHynFtXhJP0OZ7lQW6Rfn1yB0WpxbElTnqXeG8NQb+XW fvC+GpvDj6UNUBBg5QftiXym8wsP9Aa+s8O0+OW6sTJDWfDTiV3FkkaEw6SpZ9y42Cr3 14KThnOXGzpJvKK/ktB+IwDcsjnMhy1r6izUjOEQqja6SqI8UrRmRu2n4fepXom06/6X TQk889EuxtTrrnLBvJWroC5nbNj1FPAqQUv0ygpeHJuPI9mS1Mhg0o5ethjaGmZPL8t5 V17smQjC46bN/CSvejpKe7YsNCy5Q3LwS8b6GlEaRwYaV3JRWRcWhzammjCMTrb6WqMc mvJQ== X-Gm-Message-State: ACgBeo1659nSZAb1fj+ghn6AGQ9uEesWjLjeyFVgyE9mA9TB5YzZL/en 2x0fqy/mRYVNejuGMhqzKbKjpLAVgslDhHfoMWNLqlGo X-Google-Smtp-Source: AA6agR4EQpzDe+hTnaLD2E86YEECpZCmOU1TiA4A9d7frT3ztLGXoUQ0nH4Gdx3DQCvmCyNJTHr3fVvENUKcJjSiQnY= X-Received: by 2002:a67:d317:0:b0:390:462c:2dd1 with SMTP id a23-20020a67d317000000b00390462c2dd1mr3307366vsj.17.1661523312032; Fri, 26 Aug 2022 07:15:12 -0700 (PDT) MIME-Version: 1.0 References: <355260c3-880f-a497-698f-c12175192485@gmx.de> <9296DFB3-6D1A-4395-9876-3BB81B7F509A@cschneid.com> In-Reply-To: <9296DFB3-6D1A-4395-9876-3BB81B7F509A@cschneid.com> Date: Fri, 26 Aug 2022 16:15:00 +0200 Message-ID: To: Christian Schneider Cc: PHP Developers Mailing List Content-Type: multipart/alternative; boundary="000000000000ccbe2705e7258a52" Subject: Re: [PHP-DEV] ksort breaking change From: dev.juan.morales@gmail.com (juan carlos morales) --000000000000ccbe2705e7258a52 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Seems like we Don't Have tests for the function or we should enhance the existing ones. If We would Have proper tests the FIX would break it (as I Don't see tests in the fix itself).....That is why I say so. I Am not in my computer atm. I Will check this later El vie., 26 de agosto de 2022 15:01, Christian Schneider < cschneid@cschneid.com> escribi=C3=B3: > Am 26.08.2022 um 14:19 schrieb Christoph M. Becker : > > On 26.08.2022 at 05:15, Go Kudo wrote: > > > >> In the actively supported version of PHP, `ksort()` has been modified = to > >> include BC Break. > >> > >> https://github.com/php/php-src/issues/9296 > >> > >> This may seem like an appropriate bug fix, but it is a clear BC Break.= I > >> think this change should only be introduced in PHP 8.2 and later. > > > > In this case, the functions didn't behave as documented, namely to > > conform to the general conversion rules, which had a relevant change in > > PHP 8.0. Apparently, this case has been overlooked when the change had > > been implemented, and only been noticed recently (what still surprises > > me). Anyway, fixing the issue now is not really introducing a BC break= , > > since code relying on the previous behavior did not conform to the > > documentation. > > > I don't really agree with your definition of BC break. > > The behavior of the function with a mix of numeric/non-numeric string key= s > changes from 8.1.9 to 8.1.10 which in my world qualifies as a BC break. > > Regards, > - Chris > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --000000000000ccbe2705e7258a52--