summaryrefslogtreecommitdiff
path: root/ext/session/php_session.h
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>1999-12-04 17:02:04 +0000
committerAndrei Zmievski <andrei@php.net>1999-12-04 17:02:04 +0000
commit20190c966d81f832078065c8e6ff2d44d0183330 (patch)
tree510f2c942c99a9ce304efb1010dd1473d9f0501c /ext/session/php_session.h
parentf962a35df75d343f5f4503864c067cf36dac9e11 (diff)
downloadphp-git-20190c966d81f832078065c8e6ff2d44d0183330.tar.gz
Session variables now obey track_vars and gpc_globals settings.
If track_vars is on then decoded variables appear in $HTTP_STATE_VARS array. If gpc_globals is on, then session vars are decoded into global variables. If both are on, then globals and $HTTP_STATE_VARS contents are references to each other. The /decoder functions now just need to call php_set_session_var() this behavior. @ -Session vars are now decoded into $HTTP_STATE_VARS[] array and the @ globals, depending on track_vars and gpc_globals settings (Andrei) # Encoding source is currently only globals. We may want to change this # in the future.
Diffstat (limited to 'ext/session/php_session.h')
-rw-r--r--ext/session/php_session.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/session/php_session.h b/ext/session/php_session.h
index bc21a15023..d0a42a25b6 100644
--- a/ext/session/php_session.h
+++ b/ext/session/php_session.h
@@ -90,6 +90,7 @@ typedef struct {
int gc_maxlifetime;
int module_number;
const struct ps_serializer_struct *serializer;
+ zval *http_state_vars;
} php_ps_globals;
extern zend_module_entry session_module_entry;