Skip to content

Commit 98147f9

Browse files
committed
test bug
1 parent 042eb32 commit 98147f9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

jwt.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,19 +367,18 @@ PHP_FUNCTION(jwt_encode)
367367
/* check algorithm */
368368
jwt->alg = jwt_str_alg(alg);
369369

370-
printf("%d\n", jwt->alg);
371-
372370
if (jwt->alg == JWT_ALG_INVAL) {
373371
zend_throw_exception(zend_ce_exception, "Algorithm not supported", 0);
374372
goto encode_done;
375373
}
376374

377-
printf("%s\n", "=====");
378-
379375
/* set expiration and not before */
380376
jwt_options->expiration = jwt_hash_str_find_long(claims, "exp");
377+
printf("%s\n", "1");
381378
jwt_options->not_before = jwt_hash_str_find_long(claims, "nbf");
379+
printf("%s\n", "2");
382380
jwt_options->iat = jwt_hash_str_find_long(claims, "iat");
381+
printf("%s\n", "3");
383382

384383
/* init */
385384
array_init(&header);

0 commit comments

Comments
 (0)