Re: [RFC] Remove hex support in numeric strings
| From: | Sara Golemon | Date: | Sat, 03 Jan 2015 21:13:26 +0000 |
| Subject: | Re: [RFC] Remove hex support in numeric strings | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80127@lists.php.net to get a copy of this message | ||
On Sat, Jan 3, 2015 at 11:55 AM, Nikita Popov <nikita.ppv@gmail.com> wrote:
> 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.
>
+1, this was always a weird inconsistency and as you note, there's a
robust solution for explicitly saying that you want hex numbers to be
parsed. Would vote yes again.
-Sara