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 | 15b7a4476a93fa01dd3802ec913e75e92c6b43df (patch) | |
tree | aab9d22e2ab91fcc19b1fb0b942c9b0e74198c19 /ext/pcre/pcrelib/pcre_study.c | |
parent | e540cb0c453555c95f049811210df474013c99d6 (diff) | |
download | php-git-15b7a4476a93fa01dd3802ec913e75e92c6b43df.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. */ |