Skip to content

Commit b35ef25

Browse files
remicolletbd808
authored andcommitted
fix ZEND_ATOL usage
1 parent 31d331f commit b35ef25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

detect.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,11 @@ scalar_is_numeric(const char *value, size_t length, zend_long *lval,
542542
break;
543543

544544
default:
545+
#if PHP_VERSION_ID < 80100
545546
ZEND_ATOL(*lval, buf);
547+
#else
548+
*lval = ZEND_ATOL(buf);
549+
#endif
546550
break;
547551
}
548552

0 commit comments

Comments
 (0)