Skip to content

Commit 6109488

Browse files
committed
Declare module dependencies (only json for socket driver)
1 parent e4dd42a commit 6109488

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

apm.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,17 @@ struct timeval begin_tp;
124124
struct rusage begin_usg;
125125
#endif
126126

127+
static const zend_module_dep apm_deps[] = {
128+
#ifdef APM_DRIVER_SOCKET
129+
ZEND_MOD_REQUIRED("json")
130+
#endif
131+
ZEND_MOD_END
132+
};
133+
127134
zend_module_entry apm_module_entry = {
128-
STANDARD_MODULE_HEADER,
135+
STANDARD_MODULE_HEADER_EX,
136+
NULL,
137+
apm_deps,
129138
"apm",
130139
NULL,
131140
PHP_MINIT(apm),

0 commit comments

Comments
 (0)