com php-src: ext/session: remove the redundant convert_to_l ong: ext/session/mod_user.c

From: Date: Thu, 14 Mar 2019 16:29:10 +0000
Subject: com php-src: ext/session: remove the redundant convert_to_l ong: ext/session/mod_user.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105144@lists.php.net to get a copy of this message
Commit: a59881fa04f0ce0054675de907401d28b2b205f2 Author: c9s <yoanlin93@gmail.com> Tue, 12 Mar 2019 20:21:38 +0800 Committer: Nikita Popov <nikita.ppv@gmail.com> Thu, 14 Mar 2019 17:29:10 +0100 Parents: 8bb5582751ab18937584fb50ea10539df251b810 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a59881fa04f0ce0054675de907401d28b2b205f2 Log: ext/session: remove the redundant convert_to_long Changed paths: M ext/session/mod_user.c Diff: diff --git a/ext/session/mod_user.c b/ext/session/mod_user..c index 1f03c86..981e920 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 }

« previous php.cvs (#105144) next »