vrana Mon Jul 26 05:26:22 2004 EDT
Modified files: /phpdoc/en/language types.xml Log: Octal weirdness (bug #26314) http://cvs.php.net/diff.php/phpdoc/en/language/types.xml?r1=1.138&r2=1.139&ty=u Index: phpdoc/en/language/types.xml diff -u phpdoc/en/language/types.xml:1.138 phpdoc/en/language/types.xml:1.139 --- phpdoc/en/language/types.xml:1.138 Tue Jun 29 04:09:22 2004 +++ phpdoc/en/language/types.xml Mon Jul 26 05:26:21 2004 @@ -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 @@ (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">