mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
8ba145b34c
commit
b9e7cd2534
1 changed files with 3 additions and 13 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue