summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.h
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-09-15 13:41:45 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-09-15 13:41:45 +0000
commitda136e610663c5bb227a1a5f2584d6ed264c1325 (patch)
treebf28d4f062040f4c76350556a885a7454a5c99b4 /Zend/zend_operators.h
parentc68f4bde30df95fce6cbf53faaf7803f2bb34dfa (diff)
downloadphp-git-da136e610663c5bb227a1a5f2584d6ed264c1325.tar.gz
MFH: Fixed a bug causing ".123" * "90" and alike to return a 0.
Diffstat (limited to 'Zend/zend_operators.h')
-rw-r--r--Zend/zend_operators.h2
1 files changed, 1 insertions, 1 deletions
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 {