There was an error while loading. Please reload this page.
1 parent 460c8f2 commit b7f9df7Copy full SHA for b7f9df7
1 file changed
library.c
@@ -1892,8 +1892,9 @@ PHP_REDIS_API int redis_sock_connect(RedisSock *redis_sock)
1892
if (redis_sock_check_liveness(redis_sock) == SUCCESS) {
1893
redis_sock->status = REDIS_SOCK_STATUS_CONNECTED;
1894
return SUCCESS;
1895
+ } else if (redis_sock->stream) {
1896
+ php_stream_pclose(redis_sock->stream);
1897
}
- php_stream_pclose(redis_sock->stream);
1898
p->nb_active--;
1899
1900
0 commit comments