Lines 1-16
Link Here
|
1 |
Patch can be removed in next release |
|
|
2 |
Upstream fix; |
3 |
https://github.com/phpredis/phpredis/pull/1804 |
4 |
|
5 |
--- redis_session.c.orig 2020-07-03 06:17:19 UTC |
6 |
+++ redis_session.c |
7 |
@@ -480,7 +480,8 @@ PS_OPEN_FUNC(redis) |
8 |
} |
9 |
|
10 |
redis_sock = redis_sock_create(addr, addrlen, port, timeout, read_timeout, |
11 |
- persistent, ZSTR_VAL(persistent_id), retry_interval); |
12 |
+ persistent, persistent_id ? ZSTR_VAL(persistent_id) : NULL, |
13 |
+ retry_interval); |
14 |
|
15 |
redis_pool_add(pool, redis_sock, weight, db); |
16 |
redis_sock->prefix = prefix; |