Weird behavior with globals
Posted: Sun May 25, 2008 4:28 pm
Can anyone explain why this variable is registering in the $GLOBALS array? Register globals is off on the server.
Code: Select all
$foo = new stdClass();
var_dump($GLOBALS['foo']);
print ini_get("register_globals");
// Outputs:
// object(stdClass)#5 (0) {
// }
// Off