Re: Sessions and register_globals

From: Date: Fri, 05 Oct 2001 16:18:45 +0000
Subject: Re: Sessions and register_globals
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67359@lists.php.net to get a copy of this message
> Sebastian Bergmann wrote: > > Rasmus Lerdorf wrote: > >> This is expected behaviour as far as I am concerned. > > > > Sascha just enlightened me on #php.de. > > Something I still don't understand: > > <?php > session_register("count"); > $HTTP_SESSION_VARS["count"]++; > echo $HTTP_SESSION_VARS["count"]; > ?> > > The above script works, ie. outputs an increasing number during > subsequent requests, when register_globals is turned off, but not, > ie. showing always '1', when it is turned on. Fixed in 4.0.6 I think. -Rasmus

« previous php.dev (#67359) next »