Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116567 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 54057 invoked from network); 4 Dec 2021 23:44:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Dec 2021 23:44:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CE1691801FD for ; Sat, 4 Dec 2021 16:44:04 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_40,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 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-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 4 Dec 2021 16:44:01 -0800 (PST) Received: by mail-lj1-f180.google.com with SMTP id e11so13588548ljo.13 for ; Sat, 04 Dec 2021 16:44:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XZgvIw32fpbUOOG4KM+lpGO6DHPEFYHsDW8i96hBygM=; b=ntmDIJIWyma1su4E8gnoe+j6+F6/lQ3mPeATlcRd3L4UCxd1Tc8rUxx3tICi0EPQ4L XWSELPZa/DCjgN5Zib0cvfFle8vDrjnTf3PQ9XmxZgFL54Biy4LA1NPamSMxdPX//8cp njWPMgd6f7n+PrcFnIpuVJa5Q3JHj5dunopyUFIvhycNaqfOeDKHXdWjxJfkD/tvDYu8 7rQyRPhQWVqmECnyauVtVxFTbHwlAC1KIyxOMyjAquaiQgQXIQvh2YvQX4z9OaPS719/ EJ5amu9jyI7A9QUH13YwC48NTwBHorVbyQG5LLuLVNqXbA1PvkFy0E1JgEsXJtXAK5qA 0R6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XZgvIw32fpbUOOG4KM+lpGO6DHPEFYHsDW8i96hBygM=; b=k+5lUk9iGqwZ82u7l+x5+rKeT0x/XrFszf7eOmoVrLk9M0P2B2/Eys5luMroZ8ZY7g Mhw9ZJByjDHZAshvOJ5tl8+592hE2lhuYubkshUOw6Wq1fZ2d6WIVVzw7pf4Dui/Uu0Q pLQ+V8KkiCAysVUeFLLp1fdUBxFVq0hT5la5o3hctlgiK5khINJiUl3o99zlm/2wl/v9 MGut7pSTwvyRzBDRB5cS4ZdkRmn29N0cUOvU4IeVaibQIFTi3LyUle7gmD25vU4nd83+ xneIPW8dXIG+tW+5DTxTO/qvsFxlygmqmkK7sTuwXhj8Is/CjQAMKOH4a9LlGjoEHAzr EnRA== X-Gm-Message-State: AOAM530frPca1FzogqD47fpeNylh/YKi7c7/nJnzWmukMEi8fYEKnKCh GDmONo4zgUHGN4QtOK0fArCOHybVRBnnOO+CC3Y= X-Google-Smtp-Source: ABdhPJxRlMooGlqJ2lUipNaTWX/3GHpjmC52sSiY577q0OjmY7WRzq803xO2+BtSS8EdpjRp5mAlCgpxkm9rf6spxJc= X-Received: by 2002:a2e:9787:: with SMTP id y7mr26815365lji.228.1638665039357; Sat, 04 Dec 2021 16:43:59 -0800 (PST) MIME-Version: 1.0 References: <087101d7e6bb$30f27d70$92d77850$@webkr.de> <13e98142-db4e-dbe8-7474-ab15d59af95b@gmx.de> In-Reply-To: <13e98142-db4e-dbe8-7474-ab15d59af95b@gmx.de> Date: Sat, 4 Dec 2021 16:43:48 -0800 Message-ID: To: "Christoph M. Becker" Cc: =?UTF-8?B?QW5kcsOpIEjDpG5zZWw=?= , PHP internals Content-Type: multipart/alternative; boundary="00000000000093ae6d05d25b6f2a" Subject: Re: [PHP-DEV] Re: Array comparison works completely different than documented? From: jordan.ledoux@gmail.com (Jordan LeDoux) --00000000000093ae6d05d25b6f2a Content-Type: text/plain; charset="UTF-8" On Wed, Dec 1, 2021 at 7:00 AM Christoph M. Becker wrote: > > The point is that $a > $b is actually checking whether $b <= $a. This > is fine for ordered values, but these arrays are not orderable > (according to PHP's comparison). That might indeed not be documented in > the PHP manual (the language specification appears to be abandoned anyway). > > Are there any tests that capture this? As part of my operator overload RFC I'm breaking out > into its own opcode instead of a reordered <=, so this may actually be "fixed" by this. However, I haven't noticed any array related comparison tests failing in my builds. Jordan --00000000000093ae6d05d25b6f2a--