Skip to content

Avoid useless initializations of fci/fcc in array functions #18273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions ext/standard/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -6439,7 +6439,7 @@ PHP_FUNCTION(array_reduce)
zval args[2];
zval *operand;
zend_fcall_info fci;
zend_fcall_info_cache fci_cache = empty_fcall_info_cache;
zend_fcall_info_cache fci_cache;
zval *initial = NULL;
HashTable *htbl;

Expand Down Expand Up @@ -6515,7 +6515,7 @@ PHP_FUNCTION(array_filter)
zend_long use_type = 0;
zend_string *string_key;
zend_fcall_info fci = empty_fcall_info;
zend_fcall_info_cache fci_cache = empty_fcall_info_cache;
zend_fcall_info_cache fci_cache;
zend_ulong num_key;

ZEND_PARSE_PARAMETERS_START(1, 3)
Expand Down Expand Up @@ -6649,7 +6649,7 @@ PHP_FUNCTION(array_find)
{
HashTable *array;
zend_fcall_info fci;
zend_fcall_info_cache fci_cache = empty_fcall_info_cache;
zend_fcall_info_cache fci_cache;

ZEND_PARSE_PARAMETERS_START(2, 2)
Z_PARAM_ARRAY_HT(array)
Expand All @@ -6665,7 +6665,7 @@ PHP_FUNCTION(array_find_key)
{
HashTable *array;
zend_fcall_info fci;
zend_fcall_info_cache fci_cache = empty_fcall_info_cache;
zend_fcall_info_cache fci_cache;

ZEND_PARSE_PARAMETERS_START(2, 2)
Z_PARAM_ARRAY_HT(array)
Expand All @@ -6681,7 +6681,7 @@ PHP_FUNCTION(array_any)
{
HashTable *array;
zend_fcall_info fci;
zend_fcall_info_cache fci_cache = empty_fcall_info_cache;
zend_fcall_info_cache fci_cache;

ZEND_PARSE_PARAMETERS_START(2, 2)
Z_PARAM_ARRAY_HT(array)
Expand All @@ -6697,7 +6697,7 @@ PHP_FUNCTION(array_all)
{
HashTable *array;
zend_fcall_info fci;
zend_fcall_info_cache fci_cache = empty_fcall_info_cache;
zend_fcall_info_cache fci_cache;

ZEND_PARSE_PARAMETERS_START(2, 2)
Z_PARAM_ARRAY_HT(array)
Expand All @@ -6714,8 +6714,8 @@ PHP_FUNCTION(array_map)
zval *arrays = NULL;
int n_arrays = 0;
zval result;
zend_fcall_info fci = empty_fcall_info;
zend_fcall_info_cache fci_cache = empty_fcall_info_cache;
zend_fcall_info fci;
zend_fcall_info_cache fci_cache;
int i;
uint32_t k, maxlen = 0;

Expand Down
Loading