Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86ecbb7 commit 2a1ef96Copy full SHA for 2a1ef96
1 file changed
redis.c
@@ -1012,7 +1012,7 @@ PHP_METHOD(Redis, close)
1012
{
1013
RedisSock *redis_sock = redis_sock_get_connected(INTERNAL_FUNCTION_PARAM_PASSTHRU);
1014
1015
- if (redis_sock && redis_sock_disconnect(redis_sock, 1 TSRMLS_CC) == SUCCESS) {
+ if (redis_sock_disconnect(redis_sock, 1 TSRMLS_CC) == SUCCESS) {
1016
RETURN_TRUE;
1017
}
1018
RETURN_FALSE;
0 commit comments