diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2016-08-29 05:57:37 +0900 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2016-08-29 05:57:37 +0900 |
commit | 1cf179e4150308d8217d9517408ca5e22b5d607f (patch) | |
tree | 9176fa1156823cb17cdeef5f12ee12d01197a0d2 /ext/session/mod_files.c | |
parent | be0958d291e30dc025f6c519266beeddfc72ea0c (diff) | |
download | php-git-1cf179e4150308d8217d9517408ca5e22b5d607f.tar.gz |
Implement RFC Add session_gc() https://wiki.php.net/rfc/session-gc
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r-- | ext/session/mod_files.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 7cb99fabcc..24f70b6c4b 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -643,9 +643,11 @@ PS_GC_FUNC(files) if (data->dirdepth == 0) { *nrdels = ps_files_cleanup_dir(data->basedir, maxlifetime); + } else { + *nrdels = -1; // Cannot process multiple depth save dir } - return SUCCESS; + return *nrdels; } |