$GLOBALS containing itself!!!

From: Date: Mon, 15 Dec 2003 09:23:31 +0000
Subject: $GLOBALS containing itself!!!
Groups: php.general 
Request: Send a blank email to php-general+get-172718@lists.php.net to get a copy of this message
Just curious about something I came across. I was looking at the $GLOBAL array, to see what my script was leaving behind. $GLOBALS contains a reference to itself. Even though its a reference, whats the sense with that?? Once its global, why should it have to call on itself? Im currently running php 4.3.4 on FreeBSD 4.9 Thanks A script to try out -> <?php header('content-type: text/plain'); var_dump(isset($GLOBALS['GLOBALS']['GLOBALS'])); // returns true // Prints out the $GLOBALS array // including one reference to itself // then starts another but quits with *RECURSION* var_dump($GLOBALS); ?>

« previous php.general (#172718) next »