File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 35
35
# error mm is not thread-safe
36
36
#endif
37
37
38
- #define PS_MM_FILE " session_mm"
38
+ #define PS_MM_PATH "/tmp/ session_mm"
39
39
40
40
/* For php_uint32 */
41
41
#include "ext/standard/basic_functions.h"
@@ -247,18 +247,8 @@ static void ps_mm_destroy(ps_mm *data)
247
247
248
248
PHP_MINIT_FUNCTION (ps_mm )
249
249
{
250
- char * ps_mm_path = calloc (strlen (PS (save_path ))+ 1 + strlen (PS_MM_FILE )+ 1 , 1 ); /* Directory + '/' + File + \0 */
251
-
252
250
ps_mm_instance = calloc (sizeof (* ps_mm_instance ), 1 );
253
-
254
- strcpy (ps_mm_path , PS (save_path ));
255
-
256
- if ((strlen (ps_mm_path ) > 0 ) && (ps_mm_path [strlen (ps_mm_path )- 1 ] != '/' ))
257
- strcat (ps_mm_path , "/" ); /* Fixme Windows */
258
-
259
- strcat (ps_mm_path , PS_MM_FILE );
260
-
261
- if (ps_mm_initialize (ps_mm_instance , ps_mm_path ) != SUCCESS ) {
251
+ if (ps_mm_initialize (ps_mm_instance , PS_MM_PATH ) != SUCCESS ) {
262
252
ps_mm_instance = NULL ;
263
253
return FAILURE ;
264
254
}
You can’t perform that action at this time.
0 commit comments