Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116552 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 23414 invoked from network); 1 Dec 2021 22:25:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Dec 2021 22:25:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 31CE71804B5 for ; Wed, 1 Dec 2021 15:24:28 -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.6 required=5.0 tests=BAYES_50,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-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) (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 ; Wed, 1 Dec 2021 15:24:24 -0800 (PST) Received: by mail-oi1-f177.google.com with SMTP id be32so51839865oib.11 for ; Wed, 01 Dec 2021 15:24:24 -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=gE4D6P5L0djZZCzn9JHaqLNvnvs0xZYitcvmfhqfdzQ=; b=Tk5WKLzGnGTBnx/ELWk0+oxhlIChjX52X2J8+LhUhaCWhd/4hTAtfuZrBwcirVlMUY MqIMZhRJcnABnLCjlQiNjxNjv/yQdCfNFeRkqS8LvCd9D10Zqhk31FmAVUOLgIWdKyQq PV4pnGXDRnFz17j19+hdm6pY19T9GaPUdWsLB8qTU1RhbEqvgIAE+tLUV2BtCeBG+D/M Jqn5IFOpFue+IBkudka5RrPhZ1z1bdIikO1cpGAHf+1uWtb8Yc8mKSSzALl0YHOUq5hN aFyx+DVtF/yPdVxDSWvujJDjDb7JQlZ/r0HvJAX7yJKVr12XaG2zTP3ubQ3+DkRyIsXd pNIg== 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=gE4D6P5L0djZZCzn9JHaqLNvnvs0xZYitcvmfhqfdzQ=; b=UjlHiIt3cx2V5ykXWiy6ah2cGTki5j5oDNkuWVTmmk/GEH2kT1cA2D/SC1H4oSAsLJ 0HOqL20zQ+o4F0DTC9m0HV+NrBgsDL1cCp4tv9c8imo0xLz0YUmJOm5OMptsLJfYhD5u 7q3BIbKe31YthFbg/GJ6nksRvXv7ZNcXr/SlAsbGPzmUgf2kRrsoYoKNFS/J77JDTeS5 fah0b6/QK4Blluroo3qec+hhVpfNHPWrcxpmJwI96KQ54BWhqaiH9cbcAle+Ju2697YE cu7ak6NgahOyV3NMs76Y/fuSrTnMjr3LSNyhu83TYGWtB9ljk7S754tl/5MBqCeP22NS eG0w== X-Gm-Message-State: AOAM531WbHX9F+1zI1HX9LjUNda9A98LNojDGUZVS4dx+NzGx92gpEwb 6AWcP7s1MAyLreu8fKJsW9s3x5sATVsG3xGex7U= X-Google-Smtp-Source: ABdhPJzOI0nlKmy+Yo9q2aS9P2xYmDk/SG+yRetkZmLT5uBhiB/NVis4VWN6gkE+SXYb9Pvo7bl31BWqQu5hUJoXmCY= X-Received: by 2002:a54:4f82:: with SMTP id g2mr1368112oiy.134.1638401064034; Wed, 01 Dec 2021 15:24:24 -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: Thu, 2 Dec 2021 00:24:13 +0100 Message-ID: To: "Christoph M. Becker" Cc: =?UTF-8?B?QW5kcsOpIEjDpG5zZWw=?= , PHP Internals Content-Type: multipart/alternative; boundary="0000000000006be4f505d21df99b" Subject: Re: [PHP-DEV] Re: Array comparison works completely different than documented? From: benjamin.morel@gmail.com (Benjamin Morel) --0000000000006be4f505d21df99b Content-Type: text/plain; charset="UTF-8" > > 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). Shouldn't we throw an exception when comparing arrays with <, <=, >, >= anyway? - Benjamin --0000000000006be4f505d21df99b--