Skip to content

Commit 3018ba4

Browse files
committed
Fix passing non-literal format string
1 parent 6db8d21 commit 3018ba4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauthbearer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ int64_t zval_to_int64(zval *zval, const char *errstr) {
146146
char *end;
147147
converted = (int64_t) strtoll(str, &end, 10);
148148
if (end != str + Z_STRLEN_P(zval)) {
149-
zend_throw_exception_ex(spl_ce_InvalidArgumentException, 0, errstr);
149+
zend_throw_exception(spl_ce_InvalidArgumentException, errstr, 0);
150150
return 0;
151151
}
152152
break;
153153
EMPTY_SWITCH_DEFAULT_CASE();
154154
}
155-
}
155+
}

0 commit comments

Comments
 (0)