com php-src: fixed array_product(): ext/standard/arra y.c
| From: | Anatol Belski | Date: | Mon, 11 Nov 2013 08:44:24 +0000 |
| Subject: | com php-src: fixed array_product(): ext/standard/arra y.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73931@lists.php.net to get a copy of this message | ||
Commit: c23baba6934e72b5cb46df4117e04b234fc85216
Author: Anatol Belski <ab@php.net> Mon, 11 Nov 2013 09:44:24 +0100
Parents: 7e20b13d8687ae69d99bb2a92e591344cf5de001
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c23baba6934e72b5cb46df4117e04b234fc85216
Log:
fixed array_product()
Changed paths:
M ext/standard/array.c
Diff:
diff --git a/ext/standard/array.c b/ext/standard/array.c
index ef3cc47..a7136ba 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -4124,7 +4124,7 @@ PHP_FUNCTION(array_product)
if (Z_TYPE(entry_n) == IS_LONG && Z_TYPE_P(return_value) == IS_LONG) {
dval = (double)Z_LVAL_P(return_value) * (double)Z_LVAL(entry_n);
- if ( (double)LONG_MIN <= dval && dval <= (double)LONG_MAX ) {
+ if ( (double)ZEND_INT_MIN <= dval && dval <= (double)ZEND_INT_MAX ) {
Z_LVAL_P(return_value) *= Z_LVAL(entry_n);
continue;
}