From 71a8c018cbf83b1b9d72afb43cef0d2633412737 Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Fri, 19 Nov 1999 22:28:06 +0000 Subject: Fixed a bug that would replace only the first occurrence and result in a parse error for the rest when using /e modifier. --- ext/pcre/php_pcre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index ee8b6218fe..26a10991a3 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -675,7 +675,7 @@ char *_php_pcre_replace(char *regex, char *subject, char *replace) /* If evaluating, do it and add the return string's length */ if (eval) { - eval_result_len = _preg_do_eval(replace, piece, offsets, + eval_result_len = _preg_do_eval(replace, subject, offsets, count, &eval_result); new_len += eval_result_len; } else { /* do regular substitution */ -- cgit v1.2.1