Skip to content

Commit 311b1de

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix #81424: PCRE2 10.35 JIT performance regression
2 parents 9ffa3f9 + 12e79dd commit 311b1de

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
@@ -13,6 +13,9 @@ PHP NEWS
1313
. Fixed bug #81409 (Incorrect JIT code for ADD with a reference to array).
1414
(Dmitry)
1515

16+
- PCRE:
17+
. Fixed bug #81424 (PCRE2 10.35 JIT performance regression). (cmb)
18+
1619
- Zip:
1720
. Fixed bug #80833 (ZipArchive::getStream doesn't use setPassword). (Remi)
1821

ext/pcre/pcre2lib/pcre2_jit_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11228,7 +11228,7 @@ early_fail_type = (early_fail_ptr & 0x7);
1122811228
early_fail_ptr >>= 3;
1122911229

1123011230
/* During recursion, these optimizations are disabled. */
11231-
if (common->early_fail_start_ptr == 0)
11231+
if (common->early_fail_start_ptr == 0 && common->fast_forward_bc_ptr == NULL)
1123211232
{
1123311233
early_fail_ptr = 0;
1123411234
early_fail_type = type_skip;

0 commit comments

Comments
 (0)