From 879ad5bb32ab9182afce0db96a5a76702abfb50d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 1 Dec 2022 16:14:03 +0100 Subject: initial package open https://github.com/TysonAndre/immutable_cache-pecl/pull/16 - use TEST_PHP_ARGS open https://github.com/TysonAndre/immutable_cache-pecl/pull/17 - mark igbinary as required --- 17.patch | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 17.patch (limited to '17.patch') diff --git a/17.patch b/17.patch new file mode 100644 index 0000000..4fb2c94 --- /dev/null +++ b/17.patch @@ -0,0 +1,34 @@ +From 40b4d9d4e7be19fd54ab9796f5548848ece0fc57 Mon Sep 17 00:00:00 2001 +From: Remi Collet +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), -- cgit