Re: Revisiting Userland Operator Overloads

From: Date: Mon, 09 Aug 2021 18:42:29 +0000
Subject: Re: Revisiting Userland Operator Overloads
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-115674@lists.php.net to get a copy of this message
On Mon, Aug 9, 2021 at 11:40 AM Peter Cowburn <salathe@php.net> wrote: > On Mon, 9 Aug 2021 at 18:48, Jordan LeDoux <jordan.ledoux@gmail.com> > 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.

« previous php.internals (#115674) next »