svn: /phpdoc/en/trunk/language/types/ integer.xml

From: Date: Fri, 03 Jul 2015 19:00:29 +0000
Subject: svn: /phpdoc/en/trunk/language/types/ integer.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13437@lists.php.net to get a copy of this message
pasindu Fri, 03 Jul 2015 19:00:29 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337102 Log: Updated PHP 7 octal handling -- Provided by Thomas Punt Changed paths: U phpdoc/en/trunk/language/types/integer.xml Modified: phpdoc/en/trunk/language/types/integer.xml =================================================================== --- phpdoc/en/trunk/language/types/integer.xml 2015-07-03 15:05:02 UTC (rev 337101) +++ phpdoc/en/trunk/language/types/integer.xml 2015-07-03 19:00:29 UTC (rev 337102) @@ -100,20 +100,10 @@ <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>

« previous php.doc.cvs (#13437) next »