Skip to content

Commit b01875f

Browse files
authored
Merge pull request #2 from cdoco/develop
FIx #1 make test faild
2 parents c5e6772 + 81bdf07 commit b01875f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ fi
3939

4040
if test "$PHP_JWT" != "no"; then
4141
PHP_SUBST(JWT_SHARED_LIBADD)
42+
PHP_ADD_EXTENSION_DEP(jwt, json)
4243
PHP_NEW_EXTENSION(jwt, jwt.c openssl.c, $ext_shared)
4344
fi

jwt.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,14 @@ PHP_MINFO_FUNCTION(jwt)
438438
php_info_print_table_end();
439439
}
440440

441+
static const zend_module_dep jwt_dep_deps[] = {
442+
ZEND_MOD_REQUIRED("json")
443+
ZEND_MOD_END
444+
};
445+
441446
zend_module_entry jwt_module_entry = {
442-
STANDARD_MODULE_HEADER,
447+
STANDARD_MODULE_HEADER_EX, NULL,
448+
jwt_dep_deps,
443449
"jwt",
444450
jwt_functions,
445451
PHP_MINIT(jwt),

0 commit comments

Comments
 (0)