Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ fi

if test "$PHP_JWT" != "no"; then
PHP_SUBST(JWT_SHARED_LIBADD)
PHP_ADD_EXTENSION_DEP(jwt, json)
PHP_NEW_EXTENSION(jwt, jwt.c openssl.c, $ext_shared)
fi
8 changes: 7 additions & 1 deletion jwt.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,14 @@ PHP_MINFO_FUNCTION(jwt)
php_info_print_table_end();
}

static const zend_module_dep jwt_dep_deps[] = {
ZEND_MOD_REQUIRED("json")
ZEND_MOD_END
};

zend_module_entry jwt_module_entry = {
STANDARD_MODULE_HEADER,
STANDARD_MODULE_HEADER_EX, NULL,
jwt_dep_deps,
"jwt",
jwt_functions,
PHP_MINIT(jwt),
Expand Down