summaryrefslogtreecommitdiffstats
path: root/17.patch
blob: 4fb2c9459e49c6cbb964e8c01e9815cd3f19f926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 40b4d9d4e7be19fd54ab9796f5548848ece0fc57 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 1 Dec 2022 15:45:10 +0100
Subject: [PATCH] mark igbinary as required

---
 php_immutable_cache.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/php_immutable_cache.c b/php_immutable_cache.c
index 3d93868..3eb6ec9 100644
--- a/php_immutable_cache.c
+++ b/php_immutable_cache.c
@@ -625,10 +625,19 @@ PHP_FUNCTION(immutable_cache_exists) {
 }
 /* }}} */
 
+static const zend_module_dep immutable_cache_deps[] = {
+#ifdef IMMUTABLE_CACHE_IGBINARY
+	ZEND_MOD_REQUIRED("igbinary")
+#endif
+	ZEND_MOD_END
+};
+
 /* {{{ module definition structure */
 
 zend_module_entry immutable_cache_module_entry = {
-	STANDARD_MODULE_HEADER,
+	STANDARD_MODULE_HEADER_EX,
+	NULL,
+	immutable_cache_deps,
 	PHP_IMMUTABLE_CACHE_EXTNAME,
 	ext_functions,
 	PHP_MINIT(immutable_cache),