@@ -2364,7 +2364,7 @@ PHP_FUNCTION(substr_replace)
2364
2364
2365
2365
from_idx = len_idx = repl_idx = 0 ;
2366
2366
2367
- ZEND_HASH_FOREACH_KEY_VAL (str_ht , num_index , str_index , tmp_str ) {
2367
+ ZEND_HASH_FOREACH_KEY_VAL_IND (str_ht , num_index , str_index , tmp_str ) {
2368
2368
zend_string * tmp_orig_str ;
2369
2369
zend_string * orig_str = zval_get_tmp_string (tmp_str , & tmp_orig_str );
2370
2370
@@ -2804,7 +2804,7 @@ static void php_strtr_array(zval *return_value, zend_string *input, HashTable *p
2804
2804
zend_string * key_used ;
2805
2805
/* we have to rebuild HashTable with numeric keys */
2806
2806
zend_hash_init (& str_hash , zend_hash_num_elements (pats ), NULL , NULL , 0 );
2807
- ZEND_HASH_FOREACH_KEY_VAL (pats , num_key , str_key , entry ) {
2807
+ ZEND_HASH_FOREACH_KEY_VAL_IND (pats , num_key , str_key , entry ) {
2808
2808
if (UNEXPECTED (!str_key )) {
2809
2809
key_used = zend_long_to_str (num_key );
2810
2810
len = ZSTR_LEN (key_used );
@@ -3238,7 +3238,7 @@ PHP_FUNCTION(strtr)
3238
3238
zend_string * str_key , * tmp_str , * replace , * tmp_replace ;
3239
3239
zval * entry ;
3240
3240
3241
- ZEND_HASH_FOREACH_KEY_VAL (from_ht , num_key , str_key , entry ) {
3241
+ ZEND_HASH_FOREACH_KEY_VAL_IND (from_ht , num_key , str_key , entry ) {
3242
3242
tmp_str = NULL ;
3243
3243
if (UNEXPECTED (!str_key )) {
3244
3244
str_key = tmp_str = zend_long_to_str (num_key );
@@ -4119,7 +4119,7 @@ static zend_long php_str_replace_in_subject(zval *search, zval *replace, zend_st
4119
4119
}
4120
4120
4121
4121
/* For each entry in the search array, get the entry */
4122
- ZEND_HASH_FOREACH_VAL (Z_ARRVAL_P (search ), search_entry ) {
4122
+ ZEND_HASH_FOREACH_VAL_IND (Z_ARRVAL_P (search ), search_entry ) {
4123
4123
/* Make sure we're dealing with strings. */
4124
4124
zend_string * tmp_search_str ;
4125
4125
zend_string * search_str = zval_get_tmp_string (search_entry , & tmp_search_str );
@@ -4282,7 +4282,7 @@ static void php_str_replace_common(INTERNAL_FUNCTION_PARAMETERS, int case_sensit
4282
4282
4283
4283
/* For each subject entry, convert it to string, then perform replacement
4284
4284
and add the result to the return_value array. */
4285
- ZEND_HASH_FOREACH_KEY_VAL (subject_ht , num_key , string_key , subject_entry ) {
4285
+ ZEND_HASH_FOREACH_KEY_VAL_IND (subject_ht , num_key , string_key , subject_entry ) {
4286
4286
zend_string * tmp_subject_str ;
4287
4287
ZVAL_DEREF (subject_entry );
4288
4288
subject_str = zval_get_tmp_string (subject_entry , & tmp_subject_str );
0 commit comments