Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 677c8df

Browse files
Merge remote-tracking branch 'matmol/dont_throw_exception_on_pconnect' into feature/matmol_connect_ex
2 parents bab2a19 + 7e4cdb4 commit 677c8df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ PHPAPI int redis_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) {
632632
}
633633

634634
/* 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) {
635+
if (redis_sock_get(object, &redis_sock TSRMLS_CC, 1) > 0) {
636636
if (zend_hash_find(Z_OBJPROP_P(object), "socket",
637637
sizeof("socket"), (void **) &socket) == FAILURE) {
638638
/* maybe there is a socket but the id isn't known.. what to do? */

0 commit comments

Comments
 (0)