From: greg at chiaraquartet dot net Operating system: Windows XP PHP version: 4.3.2 PHP Bug Type: Arrays related Bug description: in function scope, $GLOBALS is not superglobal
Description: ------------ the $GLOBALS variables contains indexes to every superglobal except 'GLOBALS' in function scope. In global scope, it contains the 'GLOBALS' index as a self-reference Reproduce code: --------------- <?php function blah() { var_dump($GLOBALS['GLOBALS']); } blah(); ?> Expected result: ---------------- var_dump() of the $GLOBALS superglobal Actual result: -------------- Notice: Undefined index: GLOBALS in c:\web pages\chiara\a1.php on line 3 NULL -- Edit bug report at http://bugs.php.net/?id=24910&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24910&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24910&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24910&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24910&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24910&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24910&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24910&r=support Expected behavior: http://bugs.php.net/fix.php?id=24910&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24910&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24910&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24910&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24910&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24910&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24910&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24910&r=gnused