summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 82b34673ff..b8996f8a34 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -992,7 +992,6 @@ static int php_array_user_compare(Bucket *a, Bucket *b) /* {{{ */
BG(user_compare_fci_cache) = empty_fcall_info_cache; \
#define PHP_ARRAY_CMP_FUNC_RESTORE() \
- zend_release_fcall_info_cache(&BG(user_compare_fci_cache)); \
BG(user_compare_fci) = old_user_compare_fci; \
BG(user_compare_fci_cache) = old_user_compare_fci_cache; \
@@ -1515,7 +1514,6 @@ PHP_FUNCTION(array_walk)
);
php_array_walk(array, userdata, 0);
- zend_release_fcall_info_cache(&BG(array_walk_fci_cache));
BG(array_walk_fci) = orig_array_walk_fci;
BG(array_walk_fci_cache) = orig_array_walk_fci_cache;
RETURN_TRUE;
@@ -1545,7 +1543,6 @@ PHP_FUNCTION(array_walk_recursive)
);
php_array_walk(array, userdata, 1);
- zend_release_fcall_info_cache(&BG(array_walk_fci_cache));
BG(array_walk_fci) = orig_array_walk_fci;
BG(array_walk_fci_cache) = orig_array_walk_fci_cache;
RETURN_TRUE;
@@ -5951,7 +5948,6 @@ PHP_FUNCTION(array_reduce)
htbl = Z_ARRVAL_P(input);
if (zend_hash_num_elements(htbl) == 0) {
- zend_release_fcall_info_cache(&fci_cache);
return;
}
@@ -5973,8 +5969,6 @@ PHP_FUNCTION(array_reduce)
RETURN_NULL();
}
} ZEND_HASH_FOREACH_END();
-
- zend_release_fcall_info_cache(&fci_cache);
}
/* }}} */
@@ -6002,7 +5996,6 @@ PHP_FUNCTION(array_filter)
if (zend_hash_num_elements(Z_ARRVAL_P(array)) == 0) {
RETVAL_EMPTY_ARRAY();
- zend_release_fcall_info_cache(&fci_cache);
return;
}
array_init(return_value);
@@ -6064,8 +6057,6 @@ PHP_FUNCTION(array_filter)
}
zval_add_ref(operand);
} ZEND_HASH_FOREACH_END();
-
- zend_release_fcall_info_cache(&fci_cache);
}
/* }}} */
@@ -6092,7 +6083,6 @@ PHP_FUNCTION(array_map)
int ret;
if (Z_TYPE(arrays[0]) != IS_ARRAY) {
- zend_release_fcall_info_cache(&fci_cache);
zend_argument_type_error(2, "must be of type array, %s given", zend_zval_type_name(&arrays[0]));
RETURN_THROWS();
}
@@ -6101,7 +6091,6 @@ PHP_FUNCTION(array_map)
/* Short-circuit: if no callback and only one array, just return it. */
if (!ZEND_FCI_INITIALIZED(fci) || !maxlen) {
ZVAL_COPY(return_value, &arrays[0]);
- zend_release_fcall_info_cache(&fci_cache);
return;
}
@@ -6126,8 +6115,6 @@ PHP_FUNCTION(array_map)
zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, &result);
}
} ZEND_HASH_FOREACH_END();
-
- zend_release_fcall_info_cache(&fci_cache);
} else {
uint32_t *array_pos = (HashPosition *)ecalloc(n_arrays, sizeof(HashPosition));
@@ -6219,7 +6206,6 @@ PHP_FUNCTION(array_map)
}
efree(params);
- zend_release_fcall_info_cache(&fci_cache);
}
efree(array_pos);
}