mirror of
https://github.com/php/php-src.git
synced 2026-03-27 01:32:22 +01:00
MFH: Do not assume array contains numeric values.
This commit is contained in:
@@ -3210,7 +3210,7 @@ PHP_FUNCTION(array_reduce)
|
||||
result = *initial;
|
||||
} else {
|
||||
MAKE_STD_ZVAL(result);
|
||||
ZVAL_LONG(result, 0);
|
||||
ZVAL_NULL(result);
|
||||
}
|
||||
|
||||
/* (zval **)input points to an element of argument stack
|
||||
|
||||
Reference in New Issue
Block a user