We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4c3097 commit 080cf10Copy full SHA for 080cf10
ext/standard/array.c
@@ -6916,6 +6916,10 @@ PHP_FUNCTION(array_map)
6916
} else {
6917
zval *params = (zval *)safe_emalloc(n_arrays, sizeof(zval), 0);
6918
6919
+ fci.retval = &result;
6920
+ fci.param_count = n_arrays;
6921
+ fci.params = params;
6922
+
6923
/* We iterate through all the arrays at once. */
6924
for (k = 0; k < maxlen; k++) {
6925
for (i = 0; i < n_arrays; i++) {
@@ -6949,10 +6953,6 @@ PHP_FUNCTION(array_map)
6949
6953
}
6950
6954
6951
6955
6952
- fci.retval = &result;
- fci.param_count = n_arrays;
- fci.params = params;
-
6956
zend_result ret = zend_call_function(&fci, &fci_cache);
6957
ZEND_ASSERT(ret == SUCCESS);
6958
ZEND_IGNORE_VALUE(ret);
0 commit comments