summaryrefslogtreecommitdiff
path: root/databases/pecl-redis/files/patch-library.c
blob: df1d2d13fe76ab5bd3752de6d22bbd63ff82bc14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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