mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
now
This commit is contained in:
parent
490569ca28
commit
4e5acab610
1 changed files with 2 additions and 2 deletions
|
@ -1362,8 +1362,8 @@ ZEND_API inline int is_numeric_string(char *str, int length, long *lval, double
|
|||
errno=0;
|
||||
local_dval = strtod(str, &end_ptr);
|
||||
if (errno!=ERANGE && end_ptr == str+length) { /* floating point string */
|
||||
if (local_dval==HUGE_VAL || local_dval==-HUGE_VAL) {
|
||||
/* "inf" */
|
||||
if (! finite(local_dval)) {
|
||||
/* "inf","nan" and maybe other weird ones */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue