From b9e7cd2534c9514fe8a9ea27c8ab72dee1a94b85 Mon Sep 17 00:00:00 2001 From: Pasindu De Silva Date: Fri, 3 Jul 2015 19:00:29 +0000 Subject: [PATCH] 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 --- language/types/integer.xml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/language/types/integer.xml b/language/types/integer.xml index 56223b50ff..158dae9e5b 100644 --- a/language/types/integer.xml +++ b/language/types/integer.xml @@ -100,20 +100,10 @@ integer : [+-]?decimal - If an invalid digit is given in an octal integer (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 integer + (i.e. 8 or 9), the rest of the number was ignored. Since PHP 7, a parse error + is emitted. - - - Octal weirdness - - -]]> - -