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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user