php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72843 [RU] is_numeric does not accept hex, binary in PHP 7+
Submitted: 2016-08-15 11:00 UTC Modified: 2016-11-06 18:43 UTC
From: requinix@php.net Assigned: rjhdby (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:00 UTC] requinix@php.net
Description:
------------
Re: bug #72839

"Шестнадцатеричная (0xFF), двоичная (0b10100111001) и восьмеричная (0777) записи также допускаются, но только без знака, десятичной и экспоненциальной части."

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
 [2016-11-06 18:43 UTC] rjhdby@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rjhdby
 [2016-11-06 18:43 UTC] rjhdby@php.net
already updated
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 10:00:01 2026 UTC