php-developer-list | 2001041

Re: [PHP-DEV] Request for new feature: $HTTP_SESSION_VARS when register_globals = on From: Alexander Feldman (alex <email protected>)
Date: 04/06/01

On Fri, 6 Apr 2001, Chuck Hagenbuch wrote:

> Quoting Sascha Schumann <sascha <email protected>>:
>
> > >- but that does make it really
> > > messy to write code that works with either setting.
> >
> > Yes. Feel free to propose a solution which solves your
> > problem and which is compatible to existing scripts.
>
> What about adding session_set_var (and session_get_var, for symmetry) functions
> to set and access session variables regardless of scope?

It is simpler. We should just leave the array $HTTP_SESSION_VARS in the
case when register_globals is on. Currently when the variables are registered
they *are* removed from the $HTTP_SESSION_VARS array. I do not think this is
the intended behaviour.

The chance of breaking the existing scripts by having the session
variables both as global and in the $HTTP_SESSION_VARS array are minimal.

I do not think this is a new feature and just a bugfix...

-- alex

>
> -chuck
>
> --
> Charles Hagenbuch, <chuck <email protected>>
> Number of U.S. nuclear bombs lost in accidents and never recovered: 11
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
> For additional commands, e-mail: php-dev-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>