Doc #72844 [Asn->Csd]: [ES] is_numeric does not accept hex, binary in PHP 7+
| From: | julionc@php.net | Date: | Wed, 03 Feb 2021 16:28:46 +0000 |
| Subject: | Doc #72844 [Asn->Csd]: [ES] is_numeric does not accept hex, binary in PHP 7+ | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18492@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72844&edit=1
ID: 72844
Updated by: julionc@php.net
Reported by: requinix@php.net
Summary: [ES] is_numeric does not accept hex, binary in PHP
7+
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: Translation problem
PHP Version: Irrelevant
Assigned To: julionc
Block user comment: N
Private report: N
New Comment:
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+
Previous Comments:
------------------------------------------------------------------------
[2016-08-15 11:01:23] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72844&edit=1