cvs: php4(PHP_4_3) /ext/pcre php_pcre.c
| From: | Ilia Alshanetsky | Date: | Thu, 21 Nov 2002 23:51:57 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/pcre php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16531@lists.php.net to get a copy of this message | ||
iliaa Thu Nov 21 18:51:57 2002 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/pcre php_pcre.c
Log:
MFH
Index: php4/ext/pcre/php_pcre.c
diff -u php4/ext/pcre/php_pcre.c:1.132 php4/ext/pcre/php_pcre.c:1.132.2.1
--- 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:57 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.132.2.1 2002/11/21 23:51:57 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);
}
}