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: 2021-02-03 16:27 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: requinix@php.net Assigned: julionc (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: requinix@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-03 16:27 UTC] julionc@php.net
-Assigned To: +Assigned To: julionc
 [2021-02-03 16:28 UTC] julionc@php.net
Automatic comment on behalf of julionc
Revision: http://git.php.net/?p=doc/es.git;a=commit;h=944fe3c23003c6d4c7ea3d7b06cda5c972069910
Log: Fix #72844[ES] is_numeric does not accept hex, binary in PHP 7+
 [2021-02-03 16:28 UTC] julionc@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC