]> granicus.if.org Git - php/commitdiff
- Fixed doc bug #54657: Function parameters can no longer be named after
authorGustavo André dos Santos Lopes <cataphract@php.net>
Wed, 7 Sep 2011 15:28:12 +0000 (15:28 +0000)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Wed, 7 Sep 2011 15:28:12 +0000 (15:28 +0000)
  superglobal variables.

UPGRADING

index 6ff8ad9f47e316e9e6be88136a8ff5ca14aced7f..bd73451a5fcd64b2ae05637fc7426add3db7d21e 100755 (executable)
--- a/UPGRADING
+++ b/UPGRADING
@@ -102,6 +102,10 @@ UPGRADE NOTES - PHP X.Y
   $test = new StdClass;
   $test->baz = 1;
 
+- In previous versions, names of superglobals could be used for parameter
+  names, thereby shadowing the corresponding superglobal. This now causes a
+  fatal error such as "Cannot re-assign auto-global variable GLOBALS".
+
 =====================================
 4. Changes made to existing functions
 =====================================