Re: [PHP4BETA] Is autoregister of HTTP_STATE_VARS possible?
| From: | Shane Burrell | Date: | Tue, 07 Mar 2000 18:41:37 +0000 |
| Subject: | Re: [PHP4BETA] Is autoregister of HTTP_STATE_VARS possible? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11700@lists.php.net to get a copy of this message | ||
On Tue, 07 Mar 2000, Shane Burrell wrote:
> In migrating code with global register turned off and track_vars on I still
> have to do a session_register when first using HTTP_STATE_VARS. Is this
> correct? Thanks.
>
After looking at the session code and examining what would take place if
globals were set to off and track_vars were on I think either setting
HTTP_STATE_VARS which is not registered should throw an error or
HTTP_STATE_VARS during a set with global off and track vars on should check to
see if the var is in session and if not register it. I may be overlooking the
reason for not doing this. If the latter is correct I'd be glad to help out
and attempt a patch.