Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115674 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 50228 invoked from network); 9 Aug 2021 18:12:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Aug 2021 18:12:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 58DF2180088 for ; Mon, 9 Aug 2021 11:42:32 -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 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-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 ; Mon, 9 Aug 2021 11:42:31 -0700 (PDT) Received: by mail-lf1-f41.google.com with SMTP id z2so19165425lft.1 for ; Mon, 09 Aug 2021 11:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x4dGnDSFiB2PDYM2gtaEsfg/Vqhk/bG9H6CsX6xjNas=; b=XYi6fS4arovMMULtjRx97rJE8GfSCQ/uxTAYGOZNk7Kx+WAm2NeMSzm2Uv5fSqCeEp nryt0ob8D6Fs2MYSNbNs9yTNDvuuKvsCt7GZrenYAhz6CZTpXoYGFN74idmfNPVZcNZc 93Uh6gAosm27t8eCEH+FlA4uIpR2n6p525zN8UDDitOKDdsVT4dlgU5/xGclzeG4FUiU msrYKqvmOWegdp4MXtAYghdeo70Kw818NI+VcBeMfC0yenm9+3Ej03Tv4khjBnVac6ww 71xRb042ov5Ad1K6ysxwcdZdgvXKBDT3h0CmK3mEHlZUJucVL+rszsrjzi26ylZIzkQB 9YCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x4dGnDSFiB2PDYM2gtaEsfg/Vqhk/bG9H6CsX6xjNas=; b=rFQb+wLKQ0hGfhDPE4cWiswIFdkyyFuANqi9vG6RbEPN0lqZMEDZaOZM55BeuZ4qAg QjXepBtqK7motlNOXKhtELEqhu9qPZPQNmaRvk8V7Kt1dLx9Kpm2jhn4c+VoKWjQpdWl +/LbhiNWF+Df3s4IOIbvwJpOUj+aXaK5pi7b3U8YIPNr/pHpFM9a7jgjkY+paZiH5Edb MVkz11FaHwSuR8fPD479QoQizqa0epkv0XiVUTBVcZFlZKN0zqEsnD5ZwfY1CD9vmty1 TndIhhwQsqJJS3KLfDD2XK+sQcWrtWoyfeonT5f4+tu7uMKr+VNoFMC3p0D4UZFxT63J /uyQ== X-Gm-Message-State: AOAM530poYG4QvTS5pMxcf8C/oA3HyBgXM+1ajWJKOBMFGYlATXkd3+C +S21XPUYm8FfBH10QxhVC4awNkLPzn8yqrIrUgvnJ8GTgwk= X-Google-Smtp-Source: ABdhPJxSPTAKAk06wtEWMPBEAcbRHM2sCKko2iHJLnn8lS8mpsmROKGxSoduJ/DCFnZCSC7oNcNH5pMXr7YzfBBC460= X-Received: by 2002:a05:6512:4ce:: with SMTP id w14mr18322651lfq.564.1628534548385; Mon, 09 Aug 2021 11:42:28 -0700 (PDT) MIME-Version: 1.0 References: <94696d46-c4e6-406a-b859-89144bff31bf@www.fastmail.com> In-Reply-To: Date: Mon, 9 Aug 2021 11:42:29 -0700 Message-ID: To: Peter Cowburn Cc: Mike Schinkel , php internals Content-Type: multipart/alternative; boundary="00000000000042d71705c924bf99" Subject: Re: [PHP-DEV] Revisiting Userland Operator Overloads From: jordan.ledoux@gmail.com (Jordan LeDoux) --00000000000042d71705c924bf99 Content-Type: text/plain; charset="UTF-8" On Mon, Aug 9, 2021 at 11:40 AM Peter Cowburn wrote: > On Mon, 9 Aug 2021 at 18:48, Jordan LeDoux > wrote: > >> >> You claim that this would be documented on php.net and this would be >> sufficient. Yet the DateTime class has had operator overloads for >> comparison operators since 5.2 and there is still *zero* mention on >> php.net >> (that I am aware of or can find) of this. Not even a mention that it >> exists, let alone what the override behavior is. *Not even in the >> god-awful >> comments on the manual.* >> > > For future reference: https://www.php.net/manual/en/datetime.diff.php > Thank you. I honestly did look for it quite extensively. --00000000000042d71705c924bf99--