diff options
author | Nuno Lopes <nlopess@php.net> | 2008-01-13 12:44:57 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2008-01-13 12:44:57 +0000 |
commit | 4c501a0ab62a1978d4583a4a96c557c420aed22f (patch) | |
tree | e3fa5453888358f1a56127a5fd0428374cbddf93 /ext/pcre/pcrelib/pcre_exec.c | |
parent | ccc0d6e32b60e7870fea58bd46935e81c91b1154 (diff) | |
download | php-git-4c501a0ab62a1978d4583a4a96c557c420aed22f.tar.gz |
upgrade PCRE to version 7.5
Diffstat (limited to 'ext/pcre/pcrelib/pcre_exec.c')
-rw-r--r-- | ext/pcre/pcrelib/pcre_exec.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/pcre/pcrelib/pcre_exec.c b/ext/pcre/pcrelib/pcre_exec.c index 6fc2126c8d..593707fc89 100644 --- a/ext/pcre/pcrelib/pcre_exec.c +++ b/ext/pcre/pcrelib/pcre_exec.c @@ -4668,10 +4668,10 @@ for(;;) if (first_byte_caseless) while (start_match < end_subject && md->lcc[*start_match] != first_byte) - start_match++; + { NEXTCHAR(start_match); } else while (start_match < end_subject && *start_match != first_byte) - start_match++; + { NEXTCHAR(start_match); } } /* Or to just after a linebreak for a multiline match if possible */ @@ -4681,7 +4681,7 @@ for(;;) if (start_match > md->start_subject + start_offset) { while (start_match <= end_subject && !WAS_NEWLINE(start_match)) - start_match++; + { NEXTCHAR(start_match); } /* If we have just passed a CR and the newline option is ANY or ANYCRLF, and we are now at a LF, advance the match position by one more character. @@ -4702,7 +4702,9 @@ for(;;) while (start_match < end_subject) { register unsigned int c = *start_match; - if ((start_bits[c/8] & (1 << (c&7))) == 0) start_match++; else break; + if ((start_bits[c/8] & (1 << (c&7))) == 0) + { NEXTCHAR(start_match); } + else break; } } |