From eb25e1496277079423bdf2dee5aa4133c49e1f53 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Fri, 30 Dec 2016 11:39:45 -0800 Subject: [PATCH] Document the changes to lexical scoping in 7.1. Fixes bug #73844 (Cannot use lexical variable $variable as a parameter name inside array_walk()). --- UPGRADING | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.50.1