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.
- [PHP-DEV] Don't compare zero exponentials in strings a... Nikita Popov
- Re: [PHP-DEV] Don't compare zero exponentials in ... Ben Ramsey
- Re: [PHP-DEV] Don't compare zero exponentials in ... Stanislav Malyshev
- Re: [PHP-DEV] Don't compare zero exponentials... Christian Schneider
- Re: [PHP-DEV] Don't compare zero exponent... Kamil Tekiela
- Re: [PHP-DEV] Don't compare zero expo... Christian Schneider
- Re: [PHP-DEV] Don't compare zero expo... Ben Ramsey
- Re: [PHP-DEV] Don't compare zero... Rowan Tommins
- Re: [PHP-DEV] Don't compare zero... Christian Schneider
- Re: [PHP-DEV] Don't compare ... Nikita Popov
- Re: [PHP-DEV] Don't comp... Nikita Popov
- Re: [PHP-DEV] Don't comp... Kamil Tekiela
- Re: [PHP-DEV] Don't comp... Rowan Tommins
- Re: [PHP-DEV] Don't comp... Nikita Popov
- Re: [PHP-DEV] Don't comp... Rowan Tommins