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