Skip to content

Commit

Permalink
Revert "Fix #81424: PCRE2 10.35 JIT performance regression"
Browse files Browse the repository at this point in the history
This reverts commit a247138.

Fixing the performance regression, apparently fixes a functional
regression[1], so we revert for now.

[1] <PCRE2Project/pcre2#21>

Closes GH-7556.
  • Loading branch information
cmb69 committed Oct 5, 2021
1 parent 4c01bd2 commit a19f655
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ PHP NEWS
. Fixed bug #61700 (FILTER_FLAG_IPV6/FILTER_FLAG_NO_PRIV|RES_RANGE failing).
(cmb, Nikita)

- PCRE:
. Fixed bug #81424 (PCRE2 10.35 JIT performance regression). (cmb)

- SPL:
. Fixed bug #80663 (Recursive SplFixedArray::setSize() may cause double-free).
(cmb, Nikita, Tyson Andre)
Expand Down
2 changes: 1 addition & 1 deletion ext/pcre/pcre2lib/pcre2_jit_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -11152,7 +11152,7 @@ early_fail_type = (early_fail_ptr & 0x7);
early_fail_ptr >>= 3;

/* During recursion, these optimizations are disabled. */
if (common->early_fail_start_ptr == 0 && common->fast_forward_bc_ptr == NULL)
if (common->early_fail_start_ptr == 0)
{
early_fail_ptr = 0;
early_fail_type = type_skip;
Expand Down

0 comments on commit a19f655

Please sign in to comment.