]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #30726 (-.1 like numbers are not being handled correctly).
authorIlia Alshanetsky <iliaa@php.net>
Tue, 18 Jan 2005 00:30:39 +0000 (00:30 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 18 Jan 2005 00:30:39 +0000 (00:30 +0000)
NEWS
Zend/zend_operators.h

diff --git a/NEWS b/NEWS
index dbb5dd82e153ac68a507f3b2b6cd1455bc2802c6..11a8b7f9c56bf963ed047d08f38e37ef7fca7c16 100644 (file)
--- 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)
index 8349eba363d736f31bd0c2d7a397ecc5dc3912bb..2c3d65d51dbecfff6bde75b4510843d7aa842ece 100644 (file)
@@ -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 {