svn: /php/php-src/ branches/PHP_5_4/UPGRADING trunk/UPGRADING
| From: | Gustavo André dos Santos Lopes | Date: | Wed, 07 Sep 2011 15:28:12 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_4/UPGRADING trunk/UPGRADING | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-66364@lists.php.net to get a copy of this message | ||
cataphract Wed, 07 Sep 2011 15:28:12 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=316364
Log:
- Fixed doc bug #54657: Function parameters can no longer be named after
superglobal variables.
Bug: https://bugs.php.net/54657 (Open) Function parameters
can no longer be named after superglobal variables
Changed paths:
U php/php-src/branches/PHP_5_4/UPGRADING
U php/php-src/trunk/UPGRADING
Modified: php/php-src/branches/PHP_5_4/UPGRADING
===================================================================
--- php/php-src/branches/PHP_5_4/UPGRADING 2011-09-07 15:13:30 UTC (rev 316363)
+++ php/php-src/branches/PHP_5_4/UPGRADING 2011-09-07 15:28:12 UTC (rev 316364)
@@ -116,6 +116,10 @@
Now emits a Fatal error due the incompatible declaration.
+- 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
=====================================
Modified: php/php-src/trunk/UPGRADING
===================================================================
--- php/php-src/trunk/UPGRADING 2011-09-07 15:13:30 UTC (rev 316363)
+++ php/php-src/trunk/UPGRADING 2011-09-07 15:28:12 UTC (rev 316364)
@@ -102,6 +102,10 @@
$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
=====================================