Skip to content

Commit eb25e14

Browse files
committed
Document the changes to lexical scoping in 7.1.
Fixes bug #73844 (Cannot use lexical variable $variable as a parameter name inside array_walk()).
1 parent f5bf19e commit eb25e14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

UPGRADING

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ PHP 7.1 UPGRADE NOTES
9393
. The allowed_classes element of the $options parameter of unserialize() is
9494
now strictly typed, i.e. if anything other than an array or a boolean is
9595
given, unserialize() returns FALSE and issues an E_WARNING.
96+
. $this, autoglobals, and variables with the same name as a parameter can no
97+
longer be bound to a closure via the use construct.
9698

9799
- JSON:
98100
. The serialize_precision is used instead of precision when encoding double

0 commit comments

Comments
 (0)