Re: Re: [RFC] Permit trailing whitespace in numeric strings

From: Date: Tue, 26 Mar 2019 22:28:06 +0000
Subject: Re: Re: [RFC] Permit trailing whitespace in numeric strings
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-104961@lists.php.net to get a copy of this message
On 26/03/2019 21:54, Benjamin Morel wrote:
I almost had a heart attack after running this code. I knew that PHP had a few quirks when comparing different types, but I had long taken for granted that comparing 2 *strings *performed a byte-by-byte comparison.
You might want to have a stiff drink before reading through the examples in this RFC then: https://wiki.php.net/rfc/string_to_number_comparison Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#104961) next »