svn: /phpdoc/en/trunk/reference/var/functions/ is-numeric.xml
| From: | Christoph Michael Becker | Date: | Sun, 26 Jul 2015 17:34:00 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/var/functions/ is-numeric.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13486@lists.php.net to get a copy of this message | ||
cmb Sun, 26 Jul 2015 17:34:00 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337240
Log:
fixed documentation wrt. strings in non-decimal notation (fixes #64877)
Bug: https://bugs.php.net/64877 (Open) is_numeric()
doesn't treat strings in binary notation as documented
Changed paths:
U phpdoc/en/trunk/reference/var/functions/is-numeric.xml
Modified: phpdoc/en/trunk/reference/var/functions/is-numeric.xml
===================================================================
--- phpdoc/en/trunk/reference/var/functions/is-numeric.xml 2015-07-26 14:36:31 UTC (rev 337239)
+++ phpdoc/en/trunk/reference/var/functions/is-numeric.xml 2015-07-26 17:34:00 UTC (rev 337240)
@@ -19,8 +19,7 @@
sign, any number of digits, optional decimal part and optional exponential part.
Thus <literal>+0123.45e6</literal> is a valid numeric value. Hexadecimal (e.g.
<literal>0xf4c3b00c</literal>), Binary (e.g.
<literal>0b10100111001</literal>),
- Octal (e.g. <literal>0777</literal>) notation is allowed too but only without
- sign, decimal and exponential part.
+ Octal (e.g. <literal>0777</literal>) notation is not allowed.
</para>
</refsect1>
@@ -96,6 +95,32 @@
</para>
</refsect1>
+ <refsect1 role="changelog"><!-- {{{ -->
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>7.0.0</entry>
+ <entry>
+ Strings in hexadecimal (e.g. <literal>0xf4c3b00c</literal>) notation are
+ no longer regarded as numeric strings, i.e.
+ <function>is_numeric</function> returns &false; now.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1><!-- }}} -->
+
<refsect1 role="seealso">
&reftitle.seealso;
<para>