cvs: php4 /ext/pcre php_pcre.c
| From: | Andrei Zmievski | Date: | Fri, 19 Apr 2002 17:23:23 +0000 |
| Subject: | cvs: php4 /ext/pcre php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11240@lists.php.net to get a copy of this message | ||
andrei Fri Apr 19 13:23:23 2002 EDT
Modified files:
/php4/ext/pcre php_pcre.c
Log:
Revert bogus patch.
Index: php4/ext/pcre/php_pcre.c
diff -u php4/ext/pcre/php_pcre.c:1.120 php4/ext/pcre/php_pcre.c:1.121
--- php4/ext/pcre/php_pcre.c:1.120 Fri Apr 19 10:57:46 2002
+++ php4/ext/pcre/php_pcre.c Fri Apr 19 13:23:22 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.120 2002/04/19 14:57:46 derick Exp $ */
+/* $Id: php_pcre.c,v 1.121 2002/04/19 17:23:22 andrei Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -329,7 +329,7 @@
int *offsets; /* Array of subpattern offsets */
int num_subpats; /* Number of captured subpatterns */
int size_offsets; /* Size of the offsets array */
- unsigned int start_offset; /* Where the new search starts */
+ int start_offset; /* Where the new search starts */
int matched; /* Has anything matched */
int i;
int subpats_order_val = 0; /* Integer value of subpats_order */
@@ -485,7 +485,7 @@
this is not necessarily the end. We need to advance
the start offset, and continue. Fudge the offset values
to achieve this, unless we're already at the end of the string. */
- if (g_notempty != 0 && (start_offset < Z_STRLEN_PP(subject))) {
+ if (g_notempty != 0 && start_offset < Z_STRLEN_PP(subject)) {
offsets[0] = start_offset;
offsets[1] = start_offset + 1;
} else
@@ -694,7 +694,7 @@
int match_len; /* Length of the current match */
int backref; /* Backreference number */
int eval; /* If the replacement string should be eval'ed */
- unsigned int start_offset; /* Where the new search starts */
+ int start_offset; /* Where the new search starts */
int g_notempty = 0; /* If the match should not be empty */
int replace_len; /* Length of replacement string */
char *result, /* Result of replacement */
@@ -845,7 +845,7 @@
this is not necessarily the end. We need to advance
the start offset, and continue. Fudge the offset values
to achieve this, unless we're already at the end of the string. */
- if (g_notempty != 0 && (start_offset < subject_len)) {
+ if (g_notempty != 0 && start_offset < subject_len) {
offsets[0] = start_offset;
offsets[1] = start_offset + 1;
memcpy(&result[*result_len], piece, 1);
@@ -1081,7 +1081,7 @@
int no_empty = 0; /* If NO_EMPTY flag is set */
int delim_capture = 0; /* If delimiters should be captured */
int count = 0; /* Count of matched subpatterns */
- unsigned int start_offset; /* Where the new search starts */
+ int start_offset; /* Where the new search starts */
int g_notempty = 0; /* If the match should not be empty */
char *match, /* The current match */
*last_match; /* Location of last match */
@@ -1169,7 +1169,7 @@
this is not necessarily the end. We need to advance
the start offset, and continue. Fudge the offset values
to achieve this, unless we're already at the end of the string. */
- if (g_notempty != 0 && (start_offset < Z_STRLEN_PP(subject))) {
+ if (g_notempty != 0 && start_offset < Z_STRLEN_PP(subject)) {
offsets[0] = start_offset;
offsets[1] = start_offset + 1;
} else
@@ -1186,7 +1186,7 @@
start_offset = offsets[1];
}
- if (!no_empty || (start_offset != Z_STRLEN_PP(subject)))
+ if (!no_empty || start_offset != Z_STRLEN_PP(subject))
/* Add the last piece to the return value */
add_next_index_string(return_value,
&Z_STRVAL_PP(subject)[start_offset], 1);