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

[eluser]richthegeek[/eluser]
No doubt that's it whilst it's in a helper, but this problem was also occuring whilst the function code was in the view along with the calls to it:

Code:
function get()
{
   global $var;
   var_dump( $var );
}
var_dump( $var );
get();
produces
Code:
object stdClass ( ... ); NULL
rather than the expected double object output


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