Re: Re: Array comparison works completely different than documented?

From: Date: Sun, 05 Dec 2021 00:43:48 +0000
Subject: Re: Re: Array comparison works completely different than documented?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-116567@lists.php.net to get a copy of this message
On Wed, Dec 1, 2021 at 7:00 AM Christoph M. Becker <cmbecker69@gmx.de> 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

« previous php.internals (#116567) next »