Skip to content

Commit

Permalink
fix ZEND_ATOL usage
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored and bd808 committed Oct 24, 2021
1 parent 31d331f commit b35ef25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,11 @@ scalar_is_numeric(const char *value, size_t length, zend_long *lval,
break;

default:
#if PHP_VERSION_ID < 80100
ZEND_ATOL(*lval, buf);
#else
*lval = ZEND_ATOL(buf);
#endif
break;
}

Expand Down

0 comments on commit b35ef25

Please sign in to comment.