On Fri, 6 Apr 2001, Chuck Hagenbuch wrote:
> Quoting Sascha Schumann <[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, <[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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]