diff options
Diffstat (limited to 'ext/standard/string.c')
| -rw-r--r-- | ext/standard/string.c | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/ext/standard/string.c b/ext/standard/string.c index 24c3862bf5..3f47e73c1d 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -4151,6 +4151,7 @@ static void php_str_replace_common(INTERNAL_FUNCTION_PARAMETERS, int case_sensit  		/* For each subject entry, convert it to string, then perform replacement  		   and add the result to the return_value array. */  		ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(subject), num_key, string_key, subject_entry) { +			ZVAL_DEREF(subject_entry);  			if (Z_TYPE_P(subject_entry) != IS_ARRAY && Z_TYPE_P(subject_entry) != IS_OBJECT) {  				count += php_str_replace_in_subject(search, replace, subject_entry, &result, case_sensitivity);  			} else { | 
