Skip to content

Commit 042eb32

Browse files
committed
test bug
1 parent 2078f1d commit 042eb32

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jwt.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,16 +364,18 @@ PHP_FUNCTION(jwt_encode)
364364
/* init jwt */
365365
jwt_new(&jwt);
366366

367-
printf("%s\n", alg);
368-
369367
/* check algorithm */
370368
jwt->alg = jwt_str_alg(alg);
371369

370+
printf("%d\n", jwt->alg);
371+
372372
if (jwt->alg == JWT_ALG_INVAL) {
373373
zend_throw_exception(zend_ce_exception, "Algorithm not supported", 0);
374374
goto encode_done;
375375
}
376376

377+
printf("%s\n", "=====");
378+
377379
/* set expiration and not before */
378380
jwt_options->expiration = jwt_hash_str_find_long(claims, "exp");
379381
jwt_options->not_before = jwt_hash_str_find_long(claims, "nbf");

0 commit comments

Comments
 (0)