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
 =====================================

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to