diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2010-12-24 15:03:29 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2010-12-24 15:03:29 +0000 |
commit | 34c6447e9e8bc32462cd42d5aa6b0c99bff5052e (patch) | |
tree | 1baba7850d869cf79918437a6029d2e7bf007279 /ext/pcre/pcrelib/pcre_study.c | |
parent | cd34d68cddda0ab3e5d8b6ca3a641545dcff6bc6 (diff) | |
download | php-git-34c6447e9e8bc32462cd42d5aa6b0c99bff5052e.tar.gz |
Upgraded\ bundled\ PCRE\ to\ version\ 8.11.
Diffstat (limited to 'ext/pcre/pcrelib/pcre_study.c')
-rw-r--r-- | ext/pcre/pcrelib/pcre_study.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pcre/pcrelib/pcre_study.c b/ext/pcre/pcrelib/pcre_study.c index 3ac7e81496..431ad9d0dd 100644 --- a/ext/pcre/pcrelib/pcre_study.c +++ b/ext/pcre/pcrelib/pcre_study.c @@ -417,10 +417,13 @@ for (;;) case OP_MARK: case OP_PRUNE_ARG: case OP_SKIP_ARG: - case OP_THEN_ARG: cc += _pcre_OP_lengths[op] + cc[1]; break; + case OP_THEN_ARG: + cc += _pcre_OP_lengths[op] + cc[1+LINK_SIZE]; + break; + /* For the record, these are the opcodes that are matched by "default": OP_ACCEPT, OP_CLOSE, OP_COMMIT, OP_FAIL, OP_PRUNE, OP_SET_SOM, OP_SKIP, OP_THEN. */ |