summaryrefslogtreecommitdiff
path: root/ext/pcre/pcrelib/pcre_study.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2010-12-24 15:03:29 +0000
committerIlia Alshanetsky <iliaa@php.net>2010-12-24 15:03:29 +0000
commit34c6447e9e8bc32462cd42d5aa6b0c99bff5052e (patch)
tree1baba7850d869cf79918437a6029d2e7bf007279 /ext/pcre/pcrelib/pcre_study.c
parentcd34d68cddda0ab3e5d8b6ca3a641545dcff6bc6 (diff)
downloadphp-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.c5
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. */