From 9839614829db31f89388e1d0f21341be20ee46ff Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 18 Jan 2005 00:29:43 +0000 Subject: [PATCH] Fixed bug #30726 (-.1 like numbers are not being handled correctly). --- Zend/zend_operators.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index 8349eba363d..2c3d65d51db 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -88,7 +88,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' && *str != '.') { /* ignore partial string matches */ + } else if (end_ptr_long == str && *end_ptr_long != '\0' && *str != '.' && *str != '-') { /* ignore partial string matches */ return 0; } } else {