diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-01-10 08:48:23 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-01-10 08:48:23 +0000 |
commit | c4f239e6abc7cc01583d5ce84632a2196f79517a (patch) | |
tree | a3863c5bf559713ba37d5b566167ea9ccaca8404 | |
parent | 3ea732bb4fe3a5e94e5686c680f419caf0355d56 (diff) | |
download | php-git-c4f239e6abc7cc01583d5ce84632a2196f79517a.tar.gz |
Revert last commit
-rw-r--r-- | ext/session/mod_mm.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/ext/session/mod_mm.c b/ext/session/mod_mm.c index db0dc6be9c..24ae973238 100644 --- a/ext/session/mod_mm.c +++ b/ext/session/mod_mm.c @@ -35,7 +35,7 @@ # error mm is not thread-safe #endif -#define PS_MM_FILE "session_mm" +#define PS_MM_PATH "/tmp/session_mm" /* For php_uint32 */ #include "ext/standard/basic_functions.h" @@ -247,18 +247,8 @@ static void ps_mm_destroy(ps_mm *data) PHP_MINIT_FUNCTION(ps_mm) { - char *ps_mm_path = calloc(strlen(PS(save_path))+1+strlen(PS_MM_FILE)+1, 1); /* Directory + '/' + File + \0 */ - ps_mm_instance = calloc(sizeof(*ps_mm_instance), 1); - - strcpy(ps_mm_path, PS(save_path)); - - if((strlen(ps_mm_path) > 0) && (ps_mm_path[strlen(ps_mm_path)-1] != '/')) - strcat(ps_mm_path, "/"); /* Fixme Windows */ - - strcat(ps_mm_path, PS_MM_FILE); - - if (ps_mm_initialize(ps_mm_instance, ps_mm_path) != SUCCESS) { + if (ps_mm_initialize(ps_mm_instance, PS_MM_PATH) != SUCCESS) { ps_mm_instance = NULL; return FAILURE; } |