Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118517 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 16585 invoked from network); 26 Aug 2022 16:58:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Aug 2022 16:58:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 430FC1804AB for ; Fri, 26 Aug 2022 09:58:18 -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=1.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_SOFTFAIL,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-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) (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 09:58:17 -0700 (PDT) Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-33dba2693d0so50356817b3.12 for ; Fri, 26 Aug 2022 09:58:17 -0700 (PDT) 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=iCbYutkFi6xIYVUf/6xdr25BsnZegao2VSGTUNHtxwA=; b=05ScW+WFbQdVcBliOhQqp3490uIjPfYBH/H9U97FJ8+2F5/muyZ9D7P15qa4UeJM18 kcqKuOCAizsbv98iBLxc02i5JHZI+Ro91hb6T0Ema/5wN906IyU0k2nrHIDYIdOXFsVe 1BO0OfNulQ9djAMoW6En73Z7OiY+weAQL0nuWNalCT3+Hp8vhJkctO8LOBrxI6gu6hgq QQqoCyi/F/UV/mV1f639ESItFb8raGNoM7KHF9j7F5Eo4tQuwMmZZvuCh3R/PFlQB58V Z5K5t1MxcfudMpXLS81GJ5LVY8aLGQxZpgdFf0CvAckb3dBvogEl/bD+mP5GOmPlH0Uj PeFw== X-Gm-Message-State: ACgBeo1IwukMRoN3R57xs06aBRoL5EjF4HZzRyfGvCFxDE7ZlD5qrh4t VwLy30JFLmPb1CP10KQdHqKINlFiD32O+cwYA1pi3s/id56q2g== X-Google-Smtp-Source: AA6agR7znMcCm4MqZSQcfvwK4XmN6OPnZ0neddfv68rARW+P1JyyQ02IEQYY53sJU1d+x8WS5kEWBdRbYCW1TgfyoEQ= X-Received: by 2002:a81:86c2:0:b0:332:a104:f7e4 with SMTP id w185-20020a8186c2000000b00332a104f7e4mr615064ywf.505.1661533097155; Fri, 26 Aug 2022 09:58:17 -0700 (PDT) MIME-Version: 1.0 References: <355260c3-880f-a497-698f-c12175192485@gmx.de> <088EFBD2-73B5-4C22-96DA-AEDEF7DFBD45@cschneid.com> In-Reply-To: <088EFBD2-73B5-4C22-96DA-AEDEF7DFBD45@cschneid.com> Date: Fri, 26 Aug 2022 11:58:06 -0500 Message-ID: To: Christian Schneider Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000009f13905e727d268" Subject: Re: [PHP-DEV] ksort breaking change From: pollita@php.net (Sara Golemon) --00000000000009f13905e727d268 Content-Type: text/plain; charset="UTF-8" On Fri, Aug 26, 2022 at 11:53 AM Christian Schneider wrote: > Am 26.08.2022 um 18:28 schrieb Sara Golemon : > > What I can see is two noble, but conflicting ideals: > > 1/ sort() and ksort() should be consistent about their sorting > algorithms. > > I think we can all agree about that in the ideal case, at least. > > 2/ Behavior within a minor release should be self-consistent and > > predictable. > > > > Given the above, my initial inclination is to err on the side of > > conservatism for 8.0.x at the least (we're nearly at the end of our > primary > > bug-fix cycle anyway) by reverting the fix on our branch. > > For 8.1, I think we have a more difficult decision to make with over a > year > > of bug-fix releases to go, and I might be swayed to keep the fix around > > there. > > I agree with the description of the ideals but I'm not sure why you think > the resolution should be different of 8.0 than 8.1. > > We already transitioned our existing code base from 8.0 to 8.1, including > testing for changes due to the way numeric string are handled. I think it > is reasonable to adapt it for 8.2 (where another round of breaking changes > will have to be tested anyway) but I would not expect to having to do this > for a bug-fix release 8.1.x. > > That's why I'd rather have this change postponed to 8.2 (which is not that > far off anyway). > > Honestly, I vacillated on this one for awhile, having started from a "we should really revert on 8.1 as well". I flipped when I decided that the breakage potential was honestly very small. That said, no real complaints either way. -Sara --00000000000009f13905e727d268--