diff options
| author | Sascha Schumann <sas@php.net> | 1999-08-27 21:03:22 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 1999-08-27 21:03:22 +0000 |
| commit | 49824ee8cbcfcc9bc66e4a21db90cb9e63009650 (patch) | |
| tree | e689be2de0dad0f57b61c0f1dfb711e9e539a4fe /ext/session/php_session.h | |
| parent | aa8b27ba1d6867e367416a02a6c47489dc3bbc76 (diff) | |
| download | php-git-49824ee8cbcfcc9bc66e4a21db90cb9e63009650.tar.gz | |
- fix potential buffer problem in send_cookie
- fix gc probability algorithm
- don't access mod_data directly
- initial version of mm support for session data storage
This works pretty good, but we need to create the initial mm pool
from the parent process/thread. Still looking for a clean way to do that.
Diffstat (limited to 'ext/session/php_session.h')
| -rw-r--r-- | ext/session/php_session.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/session/php_session.h b/ext/session/php_session.h index 5964d69d82..c543f800d8 100644 --- a/ext/session/php_session.h +++ b/ext/session/php_session.h @@ -57,6 +57,8 @@ typedef struct ps_module_struct { int (*gc)(PS_GC_ARGS); } ps_module; +#define PS_GET_MOD_DATA() *mod_data +#define PS_SET_MOD_DATA(a) *mod_data = (a) #define PS_OPEN_FUNC(x) int _ps_open_##x(PS_OPEN_ARGS) #define PS_CLOSE_FUNC(x) int _ps_close_##x(PS_CLOSE_ARGS) |
