Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115673 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 48896 invoked from network); 9 Aug 2021 18:09:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Aug 2021 18:09:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5F113180505 for ; Mon, 9 Aug 2021 11:40:06 -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.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (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:40:05 -0700 (PDT) Received: by mail-ot1-f45.google.com with SMTP id d10-20020a9d4f0a0000b02904f51c5004e3so14695488otl.9 for ; Mon, 09 Aug 2021 11:40:05 -0700 (PDT) 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=zMQwXfCtD9LgNkxJ+ZqCJSn68Heh7U0f4iLUomypnjY=; b=fFgDdOM+PeG3t4N/15JkHpmurMBn60uM3zVb7HLVDgrm2InwHGB1fhDfItruM7/aVp SllrsIjz4A1qG20LuHSehGWiVnV2CO08V727UEVX3ct2E1uLnynLhZv7Qf65BUszECjm t8HSHfc+YSraOgKOKeND+GLX3sMRLnghYugP4Hg1+qcSbLdWtdZubaOE4iU/u9jGOZMc +2IzjoMFXmyZ9WxV9qHtD0/l0+G++17T1H1ojuGOKVTvOgrIDkisZ9gQdf8OPCjLdN+p z+TuEyblGj4l4c0a61fhJO1AEq6BUxqi0lt2G++DEYqxiPAi9wBdSKlvb16oXNWQaJmZ 55Lw== X-Gm-Message-State: AOAM531QUQ1IfGZBwNi3fkfpPxeGl8ygBXQWVySMTpfLv1v67rUUffqP MjCzmGPl6buNhi3g/iPDrT5XzXxazlZOeEkVACY= X-Google-Smtp-Source: ABdhPJwj+8YD9cjPYuj7xIVnxm4gaPj89I59wJinQ3aXpotfp4svLX6qNJPY0Cdj0Ifz9OeSBq7v5H6auNwWAi8wtkE= X-Received: by 2002:a9d:6f89:: with SMTP id h9mr15621063otq.103.1628534404190; Mon, 09 Aug 2021 11:40:04 -0700 (PDT) MIME-Version: 1.0 References: <94696d46-c4e6-406a-b859-89144bff31bf@www.fastmail.com> In-Reply-To: Date: Mon, 9 Aug 2021 19:39:26 +0100 Message-ID: To: Jordan LeDoux Cc: Mike Schinkel , php internals Content-Type: multipart/alternative; boundary="000000000000aa946605c924b68b" Subject: Re: [PHP-DEV] Revisiting Userland Operator Overloads From: salathe@php.net (Peter Cowburn) --000000000000aa946605c924b68b Content-Type: text/plain; charset="UTF-8" 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 --000000000000aa946605c924b68b--