summaryrefslogtreecommitdiff
path: root/databases/pecl-redis/files/patch-library.c
diff options
context:
space:
mode:
Diffstat (limited to 'databases/pecl-redis/files/patch-library.c')
-rw-r--r--databases/pecl-redis/files/patch-library.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/pecl-redis/files/patch-library.c b/databases/pecl-redis/files/patch-library.c
new file mode 100644
index 000000000000..df1d2d13fe76
--- /dev/null
+++ b/databases/pecl-redis/files/patch-library.c
@@ -0,0 +1,14 @@
+--- library.c.orig 2024-08-03 17:50:52 UTC
++++ library.c
+@@ -56,7 +56,11 @@
+ #include <ext/json/php_json.h>
+ #endif
+
++#if PHP_VERSION_ID <= 80300
+ #include <ext/standard/php_rand.h>
++#else
++#include <ext/random/php_random.h>
++#endif
+ #include <ext/hash/php_hash.h>
+
+ #define UNSERIALIZE_NONE 0