cvs: /php4/ext/pcre php_pcre.c

From: Date: Fri, 19 Nov 1999 22:28:37 +0000
Subject: cvs: /php4/ext/pcre php_pcre.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-6535@lists.php.net to get a copy of this message
andrei Fri Nov 19 17:28:37 1999 EDT Modified files: /php4/ext/pcre php_pcre.c Log: Fixed a bug that would replace only the first occurrence and result in a parse error for the rest when using /e modifier. Index: php4/ext/pcre/php_pcre.c diff -u php4/ext/pcre/php_pcre.c:1.26 php4/ext/pcre/php_pcre.c:1.27 --- php4/ext/pcre/php_pcre.c:1.26 Thu Oct 28 12:41:17 1999 +++ php4/ext/pcre/php_pcre.c Fri Nov 19 17:28:06 1999 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.c,v 1.26 1999/10/28 16:41:17 andrei Exp $ */ +/* $Id: php_pcre.c,v 1.27 1999/11/19 22:28:06 andrei Exp $ */ /* TODO: @@ -675,7 +675,7 @@ /* 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 */

« previous php.version4 (#6535) next »