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/mod_files.c | |
| 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/mod_files.c')
| -rw-r--r-- | ext/session/mod_files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 77e6ccd5ec..32bd760f88 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -43,7 +43,7 @@ ps_module ps_mod_files = { PS_MOD(files) }; -#define PS_FILES_DATA ps_files *data = *mod_data +#define PS_FILES_DATA ps_files *data = PS_GET_MOD_DATA() PS_OPEN_FUNC(files) { @@ -51,7 +51,7 @@ PS_OPEN_FUNC(files) char *p; data = ecalloc(sizeof(*data), 1); - *mod_data = data; + PS_SET_MOD_DATA(data); data->fd = -1; if((p = strchr(save_path, ':'))) { |
