From b35ef25b4b766c27b27b6293d3045e768e6ce677 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 23 Jul 2021 13:52:03 +0200 Subject: [PATCH] fix ZEND_ATOL usage --- detect.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/detect.c b/detect.c index 1d650f7..0a18aba 100644 --- a/detect.c +++ b/detect.c @@ -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; }