diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-01-18 00:29:43 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-01-18 00:29:43 +0000 |
commit | 9839614829db31f89388e1d0f21341be20ee46ff (patch) | |
tree | e53ae2ff30146cfb8d07720f409b57ec765ed484 /Zend/zend_operators.h | |
parent | 37ea5fbeb5101b16b6af28ae8aea2169bfb65a96 (diff) | |
download | php-git-9839614829db31f89388e1d0f21341be20ee46ff.tar.gz |
Fixed bug #30726 (-.1 like numbers are not being handled correctly).
Diffstat (limited to 'Zend/zend_operators.h')
-rw-r--r-- | Zend/zend_operators.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |