Re: [PHP4BETA] Is autoregister of HTTP_STATE_VARS possible?
| From: | Andrei Zmievski | Date: | Thu, 27 Apr 2000 16:20:19 +0000 |
| Subject: | Re: [PHP4BETA] Is autoregister of HTTP_STATE_VARS possible? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14090@lists.php.net to get a copy of this message | ||
On Thu, 27 Apr 2000, Jade Nicoletti wrote:
> Sorry, I think you don't understand me. The following line would be a php
> onliner:
> echo "count: ", ++$HTTP_SESSION_VARS['count'];
> Of course if session.auto_start and track_vars are truned on, and register
> globals is turned off.
>
> In my copy of php, this will look in the global scope for a variable
> named $count. $HTTP_SESSION_VARS['foo'] is for reading, the coresponding
> variable ($foo) is for writing.
>
> Actually, I don't think I've got it wrong, but of course it's not to exclude..
It has recently been changed to the behavior I described. Try getting
the latest snapshot. $HTTP_SESSION_VARS[] allows writing, of course, and
now the contents are auto-registered.
-Andrei
Windows 2000 is certified not to crash more than
once a day, so what is the bootup time, 24 hours?
-- Sam Liddicott