Skip to content

Commit 3baccdd

Browse files
committed
add module dependency on igbinary
1 parent a90bac2 commit 3baccdd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

redis.c

+10-1
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,18 @@ static zend_function_entry redis_functions[] = {
346346
{NULL, NULL, NULL}
347347
};
348348

349+
static const zend_module_dep redis_deps[] = {
350+
#ifdef HAVE_REDIS_IGBINARY
351+
ZEND_MOD_REQUIRED("igbinary")
352+
#endif
353+
ZEND_MOD_END
354+
};
355+
349356
zend_module_entry redis_module_entry = {
350357
#if ZEND_MODULE_API_NO >= 20010901
351-
STANDARD_MODULE_HEADER,
358+
STANDARD_MODULE_HEADER_EX,
359+
NULL,
360+
redis_deps,
352361
#endif
353362
"redis",
354363
NULL,

0 commit comments

Comments
 (0)