Skip to content

Commit 46f5a8f

Browse files
committed
test bug
1 parent 98d19b2 commit 46f5a8f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jwt.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,13 @@ const zend_function_entry jwt_functions[] = {
550550

551551
/* GINIT */
552552
PHP_GINIT_FUNCTION(jwt) {
553+
jwt_globals->expiration = 0;
554+
jwt_globals->not_before = 0;
555+
jwt_globals->iss = NULL;
556+
jwt_globals->iat = 0;
557+
jwt_globals->jti = NULL;
558+
jwt_globals->aud = NULL;
559+
jwt_globals->sub = NULL;
553560
jwt_globals->leeway = 0;
554561
jwt_globals->algorithm = "HS256";
555562
}

0 commit comments

Comments
 (0)