On 2025-10-26 00:16, Rob Landers wrote:
Object identity and value are different things... https://3v4l.org/uZTsN
<https://3v4l.org/uZTsN>
$white == new Color("white")
That's comparing the values of the objects' properties (which may or may
not be relevant to its "effective value" - the comparison applies to
private properties as well) and considering the aggregate to be the
"value of the object".
Regardless, the comparison is certainly not useful to me (where
recursively grovelling around in the objects' properties would be
prohibitively expensive if not fatal), and doesn't make array_unique()
any more helpful in deduplicating.