On Sun, Nov 11, 2001 at 12:02:56AM +0100, Sebastian Bergmann wrote:
> Environment: Current CVS on Win32.
>
> <?php
> session_register('a');
> session_register('b');
> session_register('c');
>
> echo 'GLOBALS[a]: ' . ++$GLOBALS['a'] . '<br>';
> echo '_SESSION[b]: ' . ++$_SESSION['b'] . '<br>';
> echo 'HTTP_SESSION_VARS[c]: ' . ++$HTTP_SESSION_VARS['c'] . '<br>';
> ?>
>
> register_globals = On -> Only ++$GLOBALS['a'] is effective
> register_globals = Off -> ++$GLOBALS['a'] is not effective, the other
> two work (ie. the numbers increase on sub-
> sequent requests)
>
> At the conference Rasmus told me that the $HTTP_SESSION_VARS array
> should work in _both_ situations. Is this broken, or intended? I'm
> confused right now - which is a no so uncommon situation nowadays :-)
What about $GLOBALS['HTTP_SESSION_VARS']['a']?
--
Jon Parise ([EMAIL PROTECTED]) . Information Technology (2001)
http://www.csh.rit.edu/~jon/ : Computer Science House Member
--
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]