Re: Don't compare zero exponentials in strings as equal

From: Date: Wed, 03 Mar 2021 20:25:53 +0000
Subject: Re: Don't compare zero exponentials in strings as equal
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-113357@lists.php.net to get a copy of this message
Oh, I like Chris's idea. Yes, please. Let's deprecate numerical comparison when both operands are strings and remove that behaviour in PHP 9.0. Type juggling can be useful when one of them is an integer or float but when both are strings then chances are that this is an error. Sorry Nikita, but adding special handling for edge-cases is only going to make things messier.

« previous php.internals (#113357) next »