From: Ilia Alshanetsky Date: Wed, 15 Sep 2004 13:41:38 +0000 (+0000) Subject: Fixed a bug causing ".123" * "90" and alike to return a 0. X-Git-Tag: php-5.0.2RC1~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=820516e75629b9645fc8565326f55e48c97cd0e6;p=php Fixed a bug causing ".123" * "90" and alike to return a 0. --- diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index 67ee246592..11f00acb0a 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -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 {