From: Adam Harvey Date: Fri, 30 Dec 2016 19:39:45 +0000 (-0800) Subject: Document the changes to lexical scoping in 7.1. X-Git-Tag: php-7.1.1RC1~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb25e1496277079423bdf2dee5aa4133c49e1f53;p=php Document the changes to lexical scoping in 7.1. Fixes bug #73844 (Cannot use lexical variable $variable as a parameter name inside array_walk()). --- diff --git a/UPGRADING b/UPGRADING index c626884ee2..f311a5b9ad 100644 --- a/UPGRADING +++ b/UPGRADING @@ -93,6 +93,8 @@ PHP 7.1 UPGRADE NOTES . The allowed_classes element of the $options parameter of unserialize() is now strictly typed, i.e. if anything other than an array or a boolean is given, unserialize() returns FALSE and issues an E_WARNING. + . $this, autoglobals, and variables with the same name as a parameter can no + longer be bound to a closure via the use construct. - JSON: . The serialize_precision is used instead of precision when encoding double