@@ -992,7 +992,6 @@ static int php_array_user_compare(Bucket *a, Bucket *b) /* {{{ */
992
992
BG(user_compare_fci_cache) = empty_fcall_info_cache; \
993
993
994
994
#define PHP_ARRAY_CMP_FUNC_RESTORE () \
995
- zend_release_fcall_info_cache(&BG(user_compare_fci_cache)); \
996
995
BG(user_compare_fci) = old_user_compare_fci; \
997
996
BG(user_compare_fci_cache) = old_user_compare_fci_cache; \
998
997
@@ -1515,7 +1514,6 @@ PHP_FUNCTION(array_walk)
1515
1514
);
1516
1515
1517
1516
php_array_walk (array , userdata , 0 );
1518
- zend_release_fcall_info_cache (& BG (array_walk_fci_cache ));
1519
1517
BG (array_walk_fci ) = orig_array_walk_fci ;
1520
1518
BG (array_walk_fci_cache ) = orig_array_walk_fci_cache ;
1521
1519
RETURN_TRUE ;
@@ -1545,7 +1543,6 @@ PHP_FUNCTION(array_walk_recursive)
1545
1543
);
1546
1544
1547
1545
php_array_walk (array , userdata , 1 );
1548
- zend_release_fcall_info_cache (& BG (array_walk_fci_cache ));
1549
1546
BG (array_walk_fci ) = orig_array_walk_fci ;
1550
1547
BG (array_walk_fci_cache ) = orig_array_walk_fci_cache ;
1551
1548
RETURN_TRUE ;
@@ -5951,7 +5948,6 @@ PHP_FUNCTION(array_reduce)
5951
5948
htbl = Z_ARRVAL_P (input );
5952
5949
5953
5950
if (zend_hash_num_elements (htbl ) == 0 ) {
5954
- zend_release_fcall_info_cache (& fci_cache );
5955
5951
return ;
5956
5952
}
5957
5953
@@ -5973,8 +5969,6 @@ PHP_FUNCTION(array_reduce)
5973
5969
RETURN_NULL ();
5974
5970
}
5975
5971
} ZEND_HASH_FOREACH_END ();
5976
-
5977
- zend_release_fcall_info_cache (& fci_cache );
5978
5972
}
5979
5973
/* }}} */
5980
5974
@@ -6002,7 +5996,6 @@ PHP_FUNCTION(array_filter)
6002
5996
6003
5997
if (zend_hash_num_elements (Z_ARRVAL_P (array )) == 0 ) {
6004
5998
RETVAL_EMPTY_ARRAY ();
6005
- zend_release_fcall_info_cache (& fci_cache );
6006
5999
return ;
6007
6000
}
6008
6001
array_init (return_value );
@@ -6064,8 +6057,6 @@ PHP_FUNCTION(array_filter)
6064
6057
}
6065
6058
zval_add_ref (operand );
6066
6059
} ZEND_HASH_FOREACH_END ();
6067
-
6068
- zend_release_fcall_info_cache (& fci_cache );
6069
6060
}
6070
6061
/* }}} */
6071
6062
@@ -6092,7 +6083,6 @@ PHP_FUNCTION(array_map)
6092
6083
int ret ;
6093
6084
6094
6085
if (Z_TYPE (arrays [0 ]) != IS_ARRAY ) {
6095
- zend_release_fcall_info_cache (& fci_cache );
6096
6086
zend_argument_type_error (2 , "must be of type array, %s given" , zend_zval_type_name (& arrays [0 ]));
6097
6087
RETURN_THROWS ();
6098
6088
}
@@ -6101,7 +6091,6 @@ PHP_FUNCTION(array_map)
6101
6091
/* Short-circuit: if no callback and only one array, just return it. */
6102
6092
if (!ZEND_FCI_INITIALIZED (fci ) || !maxlen ) {
6103
6093
ZVAL_COPY (return_value , & arrays [0 ]);
6104
- zend_release_fcall_info_cache (& fci_cache );
6105
6094
return ;
6106
6095
}
6107
6096
@@ -6126,8 +6115,6 @@ PHP_FUNCTION(array_map)
6126
6115
zend_hash_index_add_new (Z_ARRVAL_P (return_value ), num_key , & result );
6127
6116
}
6128
6117
} ZEND_HASH_FOREACH_END ();
6129
-
6130
- zend_release_fcall_info_cache (& fci_cache );
6131
6118
} else {
6132
6119
uint32_t * array_pos = (HashPosition * )ecalloc (n_arrays , sizeof (HashPosition ));
6133
6120
@@ -6219,7 +6206,6 @@ PHP_FUNCTION(array_map)
6219
6206
}
6220
6207
6221
6208
efree (params );
6222
- zend_release_fcall_info_cache (& fci_cache );
6223
6209
}
6224
6210
efree (array_pos );
6225
6211
}
0 commit comments