]> granicus.if.org Git - php/commitdiff
MFH: Fixed a bug causing ".123" * "90" and alike to return a 0.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 15 Sep 2004 13:41:45 +0000 (13:41 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 15 Sep 2004 13:41:45 +0000 (13:41 +0000)
Zend/zend_operators.h

index 67ee246592c6593dbbb40d1fb31022f0ae5eba07..11f00acb0a797b91bfecf482d6810a086675c22b 100644 (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 {