From: c9s Date: Tue, 12 Mar 2019 12:21:38 +0000 (+0800) Subject: ext/session: remove the redundant convert_to_long X-Git-Tag: php-7.4.0alpha1~763 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a59881fa04f0ce0054675de907401d28b2b205f2;p=php ext/session: remove the redundant convert_to_long --- 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 }