When I print $GLOBALS using this code:
<?php print_r($GLOBALS); ?>
I get this output:
Array ( [_GET] => Array ( ) [_POST] => Array ( ) [_COOKIE] => Array ( ) [_FILES] => Array ( ) [GLOBALS] => Array *RECURSION* )
What does “*RECURSION*” mean in this case, and why are $_SERVER, $_REQUEST, etc. not printed as well?
See this part of PHP Manual:
You already have retrieved the whole list – you just cannot display part of it (the one containing a recursion, because you would have timeout rather than anything meaningful).
When it comes to
$_REQUEST, it is a derivative from$_GET,$_POSTand$_COOKIE, so its content is redundant.EDIT: There is an old bug / feature, that seems to be populating
$GLOBALSwith$_SERVERand$_REQUESTwhen they are accessed. So try to access$_REQUESTand hope it helps. Anyway, it can be found in$GLOBALSafter that: ideone.com/CGetH