Skip to content

Commit 7c87abc

Browse files
committed
Explicitly declare module dependency on spl
1 parent d947faf commit 7c87abc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ext/collections/php_collections.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,15 @@ PHP_MINFO_FUNCTION(collections)
3838
/* }}} */
3939

4040
/* {{{ collections_module_entry */
41+
static const zend_module_dep collections_deps[] = {
42+
ZEND_MOD_REQUIRED("spl")
43+
ZEND_MOD_REQUIRED("json")
44+
ZEND_MOD_END
45+
};
46+
4147
zend_module_entry collections_module_entry = {
42-
STANDARD_MODULE_HEADER,
48+
STANDARD_MODULE_HEADER_EX, NULL,
49+
collections_deps,
4350
"collections", /* Extension name */
4451
NULL, /* zend_function_entry */
4552
PHP_MINIT(collections), /* PHP_MINIT - Module initialization */

0 commit comments

Comments
 (0)