summaryrefslogtreecommitdiff
path: root/databases/pecl-redis/files/patch-redis.c
diff options
context:
space:
mode:
Diffstat (limited to 'databases/pecl-redis/files/patch-redis.c')
-rw-r--r--databases/pecl-redis/files/patch-redis.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/databases/pecl-redis/files/patch-redis.c b/databases/pecl-redis/files/patch-redis.c
index 68a2dc1488f4..3678e522cf9a 100644
--- a/databases/pecl-redis/files/patch-redis.c
+++ b/databases/pecl-redis/files/patch-redis.c
@@ -1,6 +1,18 @@
--- redis.c.orig 2022-02-15 18:25:22 UTC
+++ redis.c
-@@ -154,6 +154,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_pconnect, 0, 0, 1)
+@@ -27,7 +27,11 @@
+ #include "redis_cluster.h"
+ #include "redis_commands.h"
+ #include "redis_sentinel.h"
++#if PHP_VERSION_ID <= 80300
+ #include <standard/php_random.h>
++#else
++#include <ext/random/php_random.h>
++#endif
+ #include <zend_exceptions.h>
+ #include <ext/standard/info.h>
+ #include <ext/hash/php_hash.h>
+@@ -154,6 +158,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_pconnect, 0, 0, 1)
ZEND_ARG_INFO(0, host)
ZEND_ARG_INFO(0, port)
ZEND_ARG_INFO(0, timeout)