diff options
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | ext/session/mod_files.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -6,6 +6,10 @@ PHP NEWS . Fixed bug #70481 (Memory leak in auto_global_copy_ctor() in ZTS build). (Laruence) +- Session: + . Fixed bug #70529 (Session read causes "String is not zero-terminated" error). + (Yasuo) + 17 Sep 2015, PHP 7.0.0 RC 3 diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index f5256206ff..8301b73f5e 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -519,6 +519,7 @@ PS_READ_FUNC(files) return FAILURE; } + ZSTR_VAL(*val)[ZSTR_LEN(*val)] = '\0'; return SUCCESS; } |