Skip to content

Commit 582f52c

Browse files
committed
fixed numeric string comparsion
1 parent c47840d commit 582f52c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_operators.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static inline zend_uchar is_numeric_string_ex(const char *str, zend_str_size_int
252252
}
253253

254254
if (lval) {
255-
*lval = strtol(str, NULL, base);
255+
*lval = ZEND_STRTOL(str, NULL, base);
256256
}
257257

258258
return IS_LONG;

0 commit comments

Comments
 (0)