Doc #69836 [Opn->Dup]: is_numeric and binary number
| From: | cmb@php.net | Date: | Mon, 15 Jun 2015 13:39:39 +0000 |
| Subject: | Doc #69836 [Opn->Dup]: is_numeric and binary number | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12432@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69836&edit=1
ID: 69836
Updated by: cmb@php.net
Reported by: david at grudl dot com
Summary: is_numeric and binary number
-Status: Open
+Status: Duplicate
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This is a duplicate of bug #64877. Nonetheless, thanks for the
reminder.
Previous Comments:
------------------------------------------------------------------------
[2015-06-15 12:37:25] david at grudl dot com
Description:
------------
Documentation states that (http://php.net/manual/en/function.is-numeric.php)
> Hexadecimal (e.g. 0xf4c3b00c), Binary (e.g. 0b10100111001), Octal (e.g. 0777) notation is
> allowed too but only without sign, decimal and exponential part.
But it is not true for binary and octal numbers, is_numeric('0b10100111001') returns
FALSE.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69836&edit=1