Skip to content

Commit 7a02ecb

Browse files
committed
Fixed bug #76909 preg_match difference between 7.3 and < 7.3
Applied upstream patch, see https://bugs.exim.org/show_bug.cgi?id=2321
1 parent 91b2b6c commit 7a02ecb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/pcre/pcre2lib/pcre2_jit_compile.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5856,9 +5856,6 @@ int i, j, k, len, c;
58565856
if (!sljit_has_cpu_feature(SLJIT_HAS_CMOV))
58575857
return FALSE;
58585858

5859-
if (invert)
5860-
nclass = !nclass;
5861-
58625859
len = 0;
58635860

58645861
for (i = 0; i < 32; i++)
@@ -5940,6 +5937,9 @@ if (j != 0)
59405937
}
59415938
}
59425939

5940+
if (invert)
5941+
nclass = !nclass;
5942+
59435943
type = nclass ? SLJIT_NOT_EQUAL : SLJIT_EQUAL;
59445944
add_jump(compiler, backtracks, CMP(type, TMP2, 0, SLJIT_IMM, 0));
59455945
return TRUE;

0 commit comments

Comments
 (0)