iliaa Thu Nov 21 18:51:52 2002 EDT Modified files: /php4/ext/pcre php_pcre.c Log: Fixed bug #20528. Index: php4/ext/pcre/php_pcre.c diff -u php4/ext/pcre/php_pcre.c:1.132 php4/ext/pcre/php_pcre.c:1.133 --- php4/ext/pcre/php_pcre.c:1.132 Sun Nov 10 16:24:45 2002 +++ php4/ext/pcre/php_pcre.c Thu Nov 21 18:51:52 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.c,v 1.132 2002/11/10 21:24:45 derick Exp $ */ +/* $Id: php_pcre.c,v 1.133 2002/11/21 23:51:52 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1269,9 +1269,7 @@ add_offset_pair(return_value, &Z_STRVAL_PP(subject)[start_offset], Z_STRLEN_PP(subject) - start_offset, start_offset); } else { /* Add the last piece to the return value */ - add_next_index_stringl(return_value, - &Z_STRVAL_PP(subject)[start_offset], - Z_STRLEN_PP(subject) - start_offset, 1); + add_next_index_stringl(return_value, last_match, +Z_STRVAL_PP(subject) + Z_STRLEN_PP(subject) - last_match, 1); } }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php