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),