Skip to content

Commit a247138

Browse files
committed
Fix #81424: PCRE2 10.35 JIT performance regression
We backport the respective upstream fix[1] to our bundled pcre2lib. [1] <PCRE2Project/pcre2@dc5f966> Closes GH-7484.
1 parent 424c265 commit a247138

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ PHP NEWS
66
. Fixed bug #81433 (DOMElement::setIdAttribute() called twice may remove ID).
77
(Viktor Volkov)
88

9+
- PCRE:
10+
. Fixed bug #81424 (PCRE2 10.35 JIT performance regression). (cmb)
11+
912
23 Dep 2021, PHP 7.4.24
1013

1114
- Core:

ext/pcre/pcre2lib/pcre2_jit_compile.c

Lines changed: 1 addition & 1 deletion
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)
11155+
if (common->early_fail_start_ptr == 0 && common->fast_forward_bc_ptr == NULL)
1115611156
{
1115711157
early_fail_ptr = 0;
1115811158
early_fail_type = type_skip;

0 commit comments

Comments
 (0)