mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-26 10:02:15 +01:00
Merge pull request #1447 from yulonghu/work
Fix function close() return value
This commit is contained in:
2
redis.c
2
redis.c
@@ -1012,7 +1012,7 @@ PHP_METHOD(Redis, close)
|
||||
{
|
||||
RedisSock *redis_sock = redis_sock_get_connected(INTERNAL_FUNCTION_PARAM_PASSTHRU);
|
||||
|
||||
if (redis_sock && redis_sock_disconnect(redis_sock, 1 TSRMLS_CC)) {
|
||||
if (redis_sock_disconnect(redis_sock, 1 TSRMLS_CC) == SUCCESS) {
|
||||
RETURN_TRUE;
|
||||
}
|
||||
RETURN_FALSE;
|
||||
|
||||
Reference in New Issue
Block a user