mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
When skipping blank searchvals we should advance the corresponding replace hash as well
This commit is contained in:
parent
c69d395931
commit
4c52cf5f90
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user