]> granicus.if.org Git - php/commitdiff
Document the changes to lexical scoping in 7.1.
authorAdam Harvey <aharvey@php.net>
Fri, 30 Dec 2016 19:39:45 +0000 (11:39 -0800)
committerAdam Harvey <aharvey@php.net>
Fri, 30 Dec 2016 19:39:45 +0000 (11:39 -0800)
Fixes bug #73844 (Cannot use lexical variable $variable as a parameter
name inside array_walk()).

UPGRADING

index c626884ee2deabd6efc36a3de3eaf0fca8370b4f..f311a5b9ad10548f2dda2cf6d3ee527cab32dd65 100644 (file)
--- 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