]> granicus.if.org Git - php/commitdiff
Fix bug #74087
authorStanislav Malyshev <stas@php.net>
Wed, 5 Jul 2017 02:21:28 +0000 (19:21 -0700)
committerStanislav Malyshev <stas@php.net>
Wed, 5 Jul 2017 02:21:28 +0000 (19:21 -0700)
Ported from https://vcs.pcre.org/pcre/code/trunk/pcre_jit_compile.c?r1=1676&r2=1680&view=patch

ext/pcre/pcrelib/pcre_jit_compile.c

index 445de0cbefebcbd8cc8e898029c6296d0fe569e4..4684be751a05697c087c3259dee970c2446700f2 100644 (file)
@@ -7307,7 +7307,7 @@ if (opcode == OP_COND || opcode == OP_SCOND)
 
     if (*matchingpath == OP_FAIL)
       stacksize = 0;
-    if (*matchingpath == OP_RREF)
+    else if (*matchingpath == OP_RREF)
       {
       stacksize = GET2(matchingpath, 1);
       if (common->currententry == NULL)