php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72844 [ES] is_numeric does not accept hex, binary in PHP 7+
Submitted: 2016-08-15 11:01 UTC Modified: -
From: requinix@php.net Assigned:
Status: Open Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
33 - 2 = ?
Subscribe to this entry?

 
 [2016-08-15 11:01 UTC] requinix@php.net
Description:
------------
Re: bug #72839

"Las notaciones hexadecimal (p.ej. 0xf4c3b00c), binary (p.ej. 0b10100111001), octal (p.ej. 0777) están permitidas pero únicamente sin signo, parte decimal y exponencial."

Additionally, octal should not be mentioned as is_numeric only handles decimal and will not refuse an invalid octal string like 0789.

http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.strings.hex
https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 00:01:32 2019 UTC