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

Fixed a bug causing ".123" * "90" and alike to return a 0.

This commit is contained in:
Ilia Alshanetsky
2004-09-15 13:41:38 +00:00
parent 09d555e3d0
commit 820516e756
+1 -1
View File
@@ -87,7 +87,7 @@ static inline zend_bool is_numeric_string(char *str, int length, long *lval, dou
*lval = local_lval;
}
return IS_LONG;
} else if (end_ptr_long == str && *end_ptr_long != '\0') { /* ignore partial string matches */
} else if (end_ptr_long == str && *end_ptr_long != '\0' && *str != '.') { /* ignore partial string matches */
return 0;
}
} else {