@@ -2598,7 +2598,7 @@ PHP_FUNCTION(substr_replace)
2598
2598
2599
2599
from_idx = len_idx = repl_idx = 0 ;
2600
2600
2601
- ZEND_HASH_FOREACH_KEY_VAL (Z_ARRVAL_P (str ), num_index , str_index , tmp_str ) {
2601
+ ZEND_HASH_FOREACH_KEY_VAL_IND (Z_ARRVAL_P (str ), num_index , str_index , tmp_str ) {
2602
2602
zend_string * tmp_orig_str ;
2603
2603
zend_string * orig_str = zval_get_tmp_string (tmp_str , & tmp_orig_str );
2604
2604
@@ -3046,7 +3046,7 @@ static void php_strtr_array(zval *return_value, zend_string *input, HashTable *p
3046
3046
zend_string * key_used ;
3047
3047
/* we have to rebuild HashTable with numeric keys */
3048
3048
zend_hash_init (& str_hash , zend_hash_num_elements (pats ), NULL , NULL , 0 );
3049
- ZEND_HASH_FOREACH_KEY_VAL (pats , num_key , str_key , entry ) {
3049
+ ZEND_HASH_FOREACH_KEY_VAL_IND (pats , num_key , str_key , entry ) {
3050
3050
if (UNEXPECTED (!str_key )) {
3051
3051
key_used = zend_long_to_str (num_key );
3052
3052
len = ZSTR_LEN (key_used );
@@ -3492,7 +3492,7 @@ PHP_FUNCTION(strtr)
3492
3492
zend_string * str_key , * tmp_str , * replace , * tmp_replace ;
3493
3493
zval * entry ;
3494
3494
3495
- ZEND_HASH_FOREACH_KEY_VAL (pats , num_key , str_key , entry ) {
3495
+ ZEND_HASH_FOREACH_KEY_VAL_IND (pats , num_key , str_key , entry ) {
3496
3496
tmp_str = NULL ;
3497
3497
if (UNEXPECTED (!str_key )) {
3498
3498
str_key = tmp_str = zend_long_to_str (num_key );
@@ -4391,7 +4391,7 @@ static zend_long php_str_replace_in_subject(zval *search, zval *replace, zval *s
4391
4391
}
4392
4392
4393
4393
/* For each entry in the search array, get the entry */
4394
- ZEND_HASH_FOREACH_VAL (Z_ARRVAL_P (search ), search_entry ) {
4394
+ ZEND_HASH_FOREACH_VAL_IND (Z_ARRVAL_P (search ), search_entry ) {
4395
4395
/* Make sure we're dealing with strings. */
4396
4396
zend_string * tmp_search_str ;
4397
4397
zend_string * search_str = zval_get_tmp_string (search_entry , & tmp_search_str );
@@ -4555,7 +4555,7 @@ static void php_str_replace_common(INTERNAL_FUNCTION_PARAMETERS, int case_sensit
4555
4555
4556
4556
/* For each subject entry, convert it to string, then perform replacement
4557
4557
and add the result to the return_value array. */
4558
- ZEND_HASH_FOREACH_KEY_VAL (Z_ARRVAL_P (subject ), num_key , string_key , subject_entry ) {
4558
+ ZEND_HASH_FOREACH_KEY_VAL_IND (Z_ARRVAL_P (subject ), num_key , string_key , subject_entry ) {
4559
4559
ZVAL_DEREF (subject_entry );
4560
4560
if (Z_TYPE_P (subject_entry ) != IS_ARRAY && Z_TYPE_P (subject_entry ) != IS_OBJECT ) {
4561
4561
count += php_str_replace_in_subject (search , replace , subject_entry , & result , case_sensitivity );
0 commit comments