From: Ilia Alshanetsky Date: Tue, 18 Jan 2005 00:30:39 +0000 (+0000) Subject: MFH: Fixed bug #30726 (-.1 like numbers are not being handled correctly). X-Git-Tag: php-5.0.4RC1~328 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5dbe5a0cbae863865d18b1b17d9368c66792283;p=php MFH: Fixed bug #30726 (-.1 like numbers are not being handled correctly). --- diff --git a/NEWS b/NEWS index dbb5dd82e1..11a8b7f9c5 100644 --- a/NEWS +++ b/NEWS @@ -29,6 +29,7 @@ PHP NEWS y2k_compliance is On). (Ilia) - Fixed bug #31055 (apache2filter: per request leak proportional to the full path of the request URI). (kameshj at fastmail dot fm) +- Fixed bug #30726 (-.1 like numbers are not being handled correctly). (Ilia) - Fixed bug #30446 (apache2handler: virtual() includes files out of sequence) - Fixed bug #30120 (imagettftext() and imagettfbbox() accept too many parameters). (Jani) diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index 8349eba363..2c3d65d51d 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 {