Doc #64877 [Opn->Csd]: is_numeric() doesn't treat strings in binary notation as documented
| From: | cmb@php.net | Date: | Sun, 26 Jul 2015 17:35:12 +0000 |
| Subject: | Doc #64877 [Opn->Csd]: is_numeric() doesn't treat strings in binary notation as documented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12551@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64877&edit=1
ID: 64877
Updated by: cmb@php.net
Reported by: cmbecker69 at gmx dot de
Summary: is_numeric() doesn't treat strings in binary
notation as documented
-Status: Open
+Status: Closed
Type: Documentation Problem
-Package: Documentation problem
+Package: Variables related
Operating System: any
PHP Version: 5.4.0 and later
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2015-07-26 17:34:01] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=337240
Log: fixed documentation wrt. strings in non-decimal notation (fixes #64877)
------------------------------------------------------------------------
[2015-06-15 13:39:38] cmb@php.net
Related To: Bug #69836
------------------------------------------------------------------------
[2013-10-31 17:13:05] cmbecker69 at gmx dot de
| General consensus is that we would rather remove hex
| support than add support for binary and octal.
Then it is a documentation problem.
------------------------------------------------------------------------
[2013-10-31 16:49:26] nikic@php.net
Related discussion for is_numeric_string: http://markmail.org/message/ax2drcb6dolr5agl.
General consensus is that we would rather remove hex support than add support for binary and octal.
------------------------------------------------------------------------
[2013-10-31 16:43:09] cmbecker69 at gmx dot de
| This is bugged also for hex numbers:
The results are as expected according to the documentation. Note,
that a hexadecimal number is only reported as being numeric, if it
is in hexadecimal string notation (i.e. starting with 0x). The first
example is correctly reported as being numeric, because the "e" is
recognized as starting the exponential part of the number.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=64877
--
Edit this bug report at https://bugs.php.net/bug.php?id=64877&edit=1