diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2016-09-01 05:54:55 +0900 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2016-09-01 05:54:55 +0900 |
commit | 355c7e7d1cdc180d368c6214ea7605443fc88c92 (patch) | |
tree | e8f23cf72d429a8f1f71a7cae4f27419622e6319 /ext/session/mod_user.c | |
parent | 663f1c8fb08ba51a00d7d8ed6261916c6fc8d5df (diff) | |
download | php-git-355c7e7d1cdc180d368c6214ea7605443fc88c92.tar.gz |
Revert "Implement RFC Add session_gc() https://wiki.php.net/rfc/session-gc"
This reverts commit 1cf179e4150308d8217d9517408ca5e22b5d607f.
Diffstat (limited to 'ext/session/mod_user.c')
-rw-r--r-- | ext/session/mod_user.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/ext/session/mod_user.c b/ext/session/mod_user.c index 0cdbaf96f9..beddce8883 100644 --- a/ext/session/mod_user.c +++ b/ext/session/mod_user.c @@ -176,22 +176,13 @@ PS_DESTROY_FUNC(user) PS_GC_FUNC(user) { zval args[1]; - zval retval; + STDVARS; ZVAL_LONG(&args[0], maxlifetime); ps_call_handler(&PSF(gc), 1, args, &retval); - if (Z_TYPE(retval) == IS_LONG) { - convert_to_long(&retval); - return Z_LVAL(retval); - } - /* This is for older API compatibility */ - if (Z_TYPE(retval) == IS_TRUE) { - return 1; - } - /* Anything else is some kind of error */ - return -1; // Error + FINISH; } PS_CREATE_SID_FUNC(user) |