When skipping blank searchvals we should advance the corresponding replace hash as well

This commit is contained in:
Sara Golemon 2003-06-20 15:41:43 +00:00
parent c69d395931
commit 4c52cf5f90

View File

@ -3063,6 +3063,9 @@ static void php_str_replace_in_subject(zval *search, zval *replace, zval **subje
convert_to_string(*search_entry);
if (Z_STRLEN_PP(search_entry) == 0) {
zend_hash_move_forward(Z_ARRVAL_P(search));
if (Z_TYPE_P(replace) == IS_ARRAY) {
zend_hash_move_forward(Z_ARRVAL_P(replace));
}
continue;
}