Skip to content

Commit a19f655

Browse files
committed
Revert "Fix #81424: PCRE2 10.35 JIT performance regression"
This reverts commit a247138. Fixing the performance regression, apparently fixes a functional regression[1], so we revert for now. [1] <PCRE2Project/pcre2#21> Closes phpGH-7556.
1 parent 4c01bd2 commit a19f655

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

NEWS

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ PHP NEWS
1717
. Fixed bug #61700 (FILTER_FLAG_IPV6/FILTER_FLAG_NO_PRIV|RES_RANGE failing).
1818
(cmb, Nikita)
1919

20-
- PCRE:
21-
. Fixed bug #81424 (PCRE2 10.35 JIT performance regression). (cmb)
22-
2320
- SPL:
2421
. Fixed bug #80663 (Recursive SplFixedArray::setSize() may cause double-free).
2522
(cmb, Nikita, Tyson Andre)

ext/pcre/pcre2lib/pcre2_jit_compile.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11152,7 +11152,7 @@ early_fail_type = (early_fail_ptr & 0x7);
1115211152
early_fail_ptr >>= 3;
1115311153

1115411154
/* During recursion, these optimizations are disabled. */
11155-
if (common->early_fail_start_ptr == 0 && common->fast_forward_bc_ptr == NULL)
11155+
if (common->early_fail_start_ptr == 0)
1115611156
{
1115711157
early_fail_ptr = 0;
1115811158
early_fail_type = type_skip;

0 commit comments

Comments
 (0)