Browse Source

MFH: Fixed a bug causing ".123" * "90" and alike to return a 0.

PHP-5.1
Ilia Alshanetsky 22 years ago
parent
commit
da136e6106
  1. 2
      Zend/zend_operators.h

2
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 {

Loading…
Cancel
Save