Welcome Guest, Not a member yet? Register   Sign In
Really weird "global" bug
#6

[eluser]Colin Williams[/eluser]
Well, just because the get() function is local to the Loader::view() method, global still references the very top-level scope, not just a variable in any higher-level scope.

And to get at your title, nothing "weird" is happening here. Whenever in doubt, do a var_dump or print_r on the $GLOBALS superglobal


Messages In This Thread
Really weird "global" bug - by El Forum - 08-22-2009, 09:22 PM
Really weird "global" bug - by El Forum - 08-23-2009, 12:28 AM
Really weird "global" bug - by El Forum - 08-23-2009, 12:59 AM
Really weird "global" bug - by El Forum - 08-23-2009, 01:41 AM
Really weird "global" bug - by El Forum - 08-23-2009, 01:55 AM
Really weird "global" bug - by El Forum - 08-23-2009, 02:15 AM
Really weird "global" bug - by El Forum - 08-23-2009, 02:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB