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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 Oct 27 16:01:27 2024 UTC