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.
2 parents bab2a19 + 7e4cdb4 commit 677c8dfCopy full SHA for 677c8df
redis.c
@@ -632,7 +632,7 @@ PHPAPI int redis_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) {
632
}
633
634
/* if there is a redis sock already we have to remove it from the list */
635
- if (redis_sock_get(object, &redis_sock TSRMLS_CC, 0) > 0) {
+ if (redis_sock_get(object, &redis_sock TSRMLS_CC, 1) > 0) {
636
if (zend_hash_find(Z_OBJPROP_P(object), "socket",
637
sizeof("socket"), (void **) &socket) == FAILURE) {
638
/* maybe there is a socket but the id isn't known.. what to do? */
0 commit comments