|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPeimbert (last revision 2012-07-18 22:55 UTC by eduardopeimbert at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-09-07 15:27 UTC] cataphract@php.net
[2011-09-07 15:28 UTC] cataphract@php.net
-Status: Open
+Status: Closed
-Type: Bug
+Type: Documentation Problem
-Assigned To:
+Assigned To: cataphract
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 14:00:01 2025 UTC |
Description: ------------ There is a backwards incompatible change in trunk in that function can no longer have parameters with a name equal to the one of some superglobal. This should either be fixed with the previous behavior (the parameter shadows the superglobal) or documented in UPGRADING. Test script: --------------- $ php -d error_reporting=-1 <?php function a($GLOBALS) { $GLOBALS['h'] = 8; } $g = null; a($g); var_dump($h); Expected result: ---------------- On 5.3: Notice: Undefined variable: h in - on line 7 NULL Actual result: -------------- On trunk: Fatal error: Cannot re-assign auto-global variable GLOBALS in - on line 2