diff options
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r-- | ext/session/mod_files.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index f5256206ff..b380cfe86b 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2015 The PHP Group | + | Copyright (c) 1997-2016 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -443,7 +443,7 @@ PS_CLOSE_FUNC(files) efree(data->basedir); efree(data); - *mod_data = NULL; + PS_SET_MOD_DATA(NULL); return SUCCESS; } @@ -519,6 +519,7 @@ PS_READ_FUNC(files) return FAILURE; } + ZSTR_VAL(*val)[ZSTR_LEN(*val)] = '\0'; return SUCCESS; } |