Re: [RFC] Remove hex support in numeric strings

From: Date: Sat, 03 Jan 2015 23:17:34 +0000
Subject: Re: [RFC] Remove hex support in numeric strings
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-80128@lists.php.net to get a copy of this message
Hi! > I'd like to propose removing support for hexadecimal strings in the > is_numeric_string() function, in order to achieve consistency with ordinary > integer and float casts: > > > https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings > > This change drops a WTF in our conversion semantics and should have low BC > impact. While I'm usually all for preserving BC in this case I think removing the inconsistency is better and the use case is weird enough that it makes little sense to implicitly support it. Given that we have options with both filter and hexdec _and_ casts do not support it, I think this RFC would do the right thing. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#80128) next »