Updated PHP 7 octal handling

-- 
Provided by Thomas Punt

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337102 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Pasindu De Silva 2015-07-03 19:00:29 +00:00
parent 8ba145b34c
commit b9e7cd2534

View file

@ -100,20 +100,10 @@ integer : [+-]?decimal
<warning>
<para>
If an invalid digit is given in an octal <type>integer</type> (i.e. 8 or 9),
the rest of the number is ignored.
Prior to PHP 7, if an invalid digit was given in an octal <type>integer</type>
(i.e. 8 or 9), the rest of the number was ignored. Since PHP 7, a parse error
is emitted.
</para>
<example>
<title>Octal weirdness</title>
<programlisting role="php">
<![CDATA[
<?php
var_dump(01090); // 010 octal = 8 decimal
?>
]]>
</programlisting>
</example>
</warning>
</sect2>