diff options
author | c9s <yoanlin93@gmail.com> | 2019-03-12 20:21:38 +0800 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-14 17:29:10 +0100 |
commit | a59881fa04f0ce0054675de907401d28b2b205f2 (patch) | |
tree | c58d30995fc4da80f2cc5ba8ed363ead76e022dd /ext/session/mod_user.c | |
parent | 8bb5582751ab18937584fb50ea10539df251b810 (diff) | |
download | php-git-a59881fa04f0ce0054675de907401d28b2b205f2.tar.gz |
ext/session: remove the redundant convert_to_long
Diffstat (limited to 'ext/session/mod_user.c')
-rw-r--r-- | ext/session/mod_user.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/session/mod_user.c b/ext/session/mod_user.c index 1f03c86114..981e920bc1 100644 --- a/ext/session/mod_user.c +++ b/ext/session/mod_user.c @@ -189,13 +189,14 @@ PS_GC_FUNC(user) 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 } |