1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00

Yikes, that would have been a very bad bug :)

This commit is contained in:
Zeev Suraski
2001-05-06 16:24:36 +00:00
parent f78e65cabf
commit d2cbd019e3
+1 -1
View File
@@ -73,7 +73,7 @@ static inline int is_numeric_string(char *str, int length, long *lval, double *d
conv_base=16;
}
errno=0;
local_lval = strtol(str, &end_ptr, 16);
local_lval = strtol(str, &end_ptr, conv_base);
if (errno!=ERANGE && end_ptr == str+length) { /* integer string */
if (lval) {
*lval = local_lval;