Skip to content

Commit 12e79dd

Browse files
committed
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fix #81424: PCRE2 10.35 JIT performance regression
2 parents 6fbdf69 + a247138 commit 12e79dd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

+3
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 Sep 2021, PHP 8.0.11
1013

1114
- Core:

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)
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)