From 26a80c72afa5dd131b6b56f15d0c92cd20197cd6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gustavo=20Andr=C3=A9=20dos=20Santos=20Lopes?= Date: Wed, 7 Sep 2011 15:28:12 +0000 Subject: [PATCH] - Fixed doc bug #54657: Function parameters can no longer be named after superglobal variables. --- UPGRADING | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UPGRADING b/UPGRADING index 6ff8ad9f47..bd73451a5f 100755 --- 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 ===================================== -- 2.50.1