12 lines
539 B
Text
12 lines
539 B
Text
Index: library.c
|
|
--- library.c.orig
|
|
+++ library.c
|
|
@@ -3108,7 +3108,7 @@ PHP_REDIS_API int redis_sock_connect(RedisSock *redis_
|
|
}
|
|
|
|
gettimeofday(&tv, NULL);
|
|
- persistent_id = strpprintf(0, "phpredis_%ld%ld", tv.tv_sec, tv.tv_usec);
|
|
+ persistent_id = strpprintf(0, "phpredis_%lld%ld", (long long)tv.tv_sec, tv.tv_usec);
|
|
} else {
|
|
if (redis_sock->persistent_id) {
|
|
persistent_id = strpprintf(0, "phpredis:%s:%s", host, ZSTR_VAL(redis_sock->persistent_id));
|