Skip to content

Commit

Permalink
replace deprecated zend_atoi
Browse files Browse the repository at this point in the history
  • Loading branch information
andypost committed Jun 14, 2023
1 parent 5938c54 commit 6b53975
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions brotli.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,11 @@ static PHP_INI_MH(OnUpdate_brotli_output_compression)
int_value = 0;
} else if (!strncasecmp(ZSTR_VAL(new_value), "on", sizeof("on"))) {
int_value = 1;
#if PHP_VERSION_ID >= 80200
} else if (zend_ini_parse_quantity_warn(new_value, entry->name)) {
#else
} else if (zend_atoi(ZSTR_VAL(new_value), ZSTR_LEN(new_value))) {
#endif
int_value = 1;
} else {
int_value = 0;
Expand Down

0 comments on commit 6b53975

Please sign in to comment.