diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2015-02-12 12:32:36 +0900 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2015-02-12 13:07:27 +0900 |
commit | 741b5952c6d8b0a75c9b421e10b9bace5b7a89f4 (patch) | |
tree | e93a8cd9dbbf5cc607ee754b9a11831ed4a9dfd6 /ext/session/mod_user_class.c | |
parent | b83352ccf3bbad3eb4aa3f2a9c591f91e0861e43 (diff) | |
download | php-git-741b5952c6d8b0a75c9b421e10b9bace5b7a89f4.tar.gz |
Pass maxlifetime to save handlers
Diffstat (limited to 'ext/session/mod_user_class.c')
-rw-r--r-- | ext/session/mod_user_class.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/session/mod_user_class.c b/ext/session/mod_user_class.c index 328416c02e..82aea14854 100644 --- a/ext/session/mod_user_class.c +++ b/ext/session/mod_user_class.c @@ -80,7 +80,7 @@ PHP_METHOD(SessionHandler, read) return; } - if (PS(default_mod)->s_read(&PS(mod_data), key, &val) == FAILURE) { + if (PS(default_mod)->s_read(&PS(mod_data), key, &val, PS(gc_maxlifetime)) == FAILURE) { RETVAL_FALSE; return; } @@ -101,7 +101,7 @@ PHP_METHOD(SessionHandler, write) return; } - RETURN_BOOL(SUCCESS == PS(default_mod)->s_write(&PS(mod_data), key, val)); + RETURN_BOOL(SUCCESS == PS(default_mod)->s_write(&PS(mod_data), key, val, PS(gc_maxlifetime))); } /* }}} */ @@ -186,6 +186,6 @@ PHP_METHOD(SessionHandler, updateTimestamp) } /* Legacy save handler may not support update_timestamp API. Just write. */ - RETVAL_BOOL(SUCCESS == PS(default_mod)->s_write(&PS(mod_data), key, val)); + RETVAL_BOOL(SUCCESS == PS(default_mod)->s_write(&PS(mod_data), key, val, PS(gc_maxlifetime))); } /* }}} */ |