Octal weirdness (bug #26314)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164324 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2004-07-26 09:26:21 +00:00
parent 643edde961
commit c15ba3fe59

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.138 $ -->
<!-- $Revision: 1.139 $ -->
<chapter id="language.types">
<title>Types</title>
@ -369,6 +369,22 @@ integer : [+-]?decimal
(that's 32 bits signed). PHP does not support unsigned
integers.
</para>
<warning>
<para>
If invalid digit is passed to octal integer (i.e. 8 or 9), the rest of
the number is ignored.
<example>
<title>Octal weirdness</title>
<programlisting role="php">
<![CDATA[
<?php
var_dump(01090); // 010 octal = 8 decimal
?>
]]>
</programlisting>
</example>
</para>
</warning>
</sect2>
<sect2 id="language.types.integer.overflow">