Re: globals broke

From: Date: Thu, 11 Jan 2001 23:34:30 +0000
Subject: Re: globals broke
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34149@lists.php.net to get a copy of this message
well thats a strange one isn't it. I would double check your php.ini make sure it wasn't changed, also check the phpinfo() output to see if its accually using the right php.ini file http://php.net/manual/function.phpinfo.php can you use the GLOBALS array? echo $GLOBALS['foo']; I dont quite know what to say more, thats a strange one you got there :) Chris Lee Mediawaveonline.com ""Jon Rosenberg"" <php@columbusinteractive.com> wrote in message news:001301c07c26$5609d3e0$75e2d2cc@slinkyboi5... > I just installed 4.0.4pl1 upgrade from 4.0.3pl1. I changed nothing in my > ini file and just left it inplace from the previous installation. I used > the same configure options, --with-apxs and --with-mysql > Now, my global variables don't work in my functions. > > ie. > > $foo = "bar"; > $rap = 7; > > function bob(){ > global $foo, $rap; > echo $foo; ----------------no output is seen, but it is in 4.0.3pl1 > do something > return; > } > > HELP!!! Thanks > ----------------------------------------------------------------- > Jonathan Rosenberg > Be fierce, be fabulous, change the world! > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#34149) next »