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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 20:01:30 2024 UTC