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

Skip to content

Commit ec4fd1b

Browse files
committed
Issue #1238
This change allows to use empty string as persistant_id
1 parent 0115666 commit ec4fd1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ redis_sock_create(char *host, int host_len, unsigned short port,
13771377
redis_sock->lazy_connect = lazy_connect;
13781378
redis_sock->persistent_id = NULL;
13791379

1380-
if (persistent_id) {
1380+
if (persistent && persistent_id != NULL) {
13811381
redis_sock->persistent_id = zend_string_init(persistent_id, strlen(persistent_id), 0);
13821382
}
13831383

0 commit comments

Comments
 (0)