diff options
author | Andrei Zmievski <andrei@php.net> | 1999-11-19 22:28:06 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 1999-11-19 22:28:06 +0000 |
commit | 71a8c018cbf83b1b9d72afb43cef0d2633412737 (patch) | |
tree | 6aad24ca53f6a110a0bc8f5bb2fe245ea882196a | |
parent | 3e59135a5c8c7574c14acb0c420fd58546b03e11 (diff) | |
download | php-git-71a8c018cbf83b1b9d72afb43cef0d2633412737.tar.gz |
Fixed a bug that would replace only the first occurrence and result in
a parse error for the rest when using /e modifier.
-rw-r--r-- | ext/pcre/php_pcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |