From 35938e4d90765289d701a89c95b96843d150e5a6 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Fri, 20 Jun 2003 15:44:48 +0000 Subject: [PATCH] MFH (r-1.391) When skipping blank searchvals we should advance the corresponding replace hash as well --- ext/standard/string.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/standard/string.c b/ext/standard/string.c index de6a66b099..80897aa959 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2629,6 +2629,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; } -- 2.50.1