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 466277c commit 2d79c16Copy full SHA for 2d79c16
ext/standard/array.c
@@ -6908,6 +6908,10 @@ PHP_FUNCTION(array_map)
6908
} else {
6909
zval *params = (zval *)safe_emalloc(n_arrays, sizeof(zval), 0);
6910
6911
+ fci.retval = &result;
6912
+ fci.param_count = n_arrays;
6913
+ fci.params = params;
6914
+
6915
/* We iterate through all the arrays at once. */
6916
for (k = 0; k < maxlen; k++) {
6917
for (i = 0; i < n_arrays; i++) {
@@ -6941,10 +6945,6 @@ PHP_FUNCTION(array_map)
6941
6945
}
6942
6946
6943
6947
6944
- fci.retval = &result;
- fci.param_count = n_arrays;
- fci.params = params;
-
6948
zend_result ret = zend_call_function(&fci, &fci_cache);
6949
ZEND_ASSERT(ret == SUCCESS);
6950
ZEND_IGNORE_VALUE(ret);
0 commit comments