We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3018ba4 commit e661a9bCopy full SHA for e661a9b
oauthbearer.c
@@ -142,13 +142,13 @@ int64_t zval_to_int64(zval *zval, const char *errstr) {
142
return (int64_t) Z_DVAL_P(zval);
143
break;
144
case IS_STRING:;
145
- char *str = Z_STRVAL_P(zval);
146
- char *end;
147
- converted = (int64_t) strtoll(str, &end, 10);
148
- if (end != str + Z_STRLEN_P(zval)) {
149
- zend_throw_exception(spl_ce_InvalidArgumentException, errstr, 0);
150
- return 0;
151
- }
+ char *str = Z_STRVAL_P(zval);
+ char *end;
+ converted = (int64_t) strtoll(str, &end, 10);
+ if (end != str + Z_STRLEN_P(zval)) {
+ zend_throw_exception(spl_ce_InvalidArgumentException, errstr, 0);
+ return 0;
+ }
152
153
EMPTY_SWITCH_DEFAULT_CASE();
154
}
0 commit comments