Skip to content

Fixed an issue in the backtracking optimization of character repeats in JIT #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

zherczeg
Copy link
Collaborator

No description provided.

@zherczeg zherczeg merged commit 4851890 into master Jul 14, 2022
@zherczeg zherczeg deleted the repeat_fix branch July 14, 2022 03:25
nielsdos added a commit to nielsdos/php-src that referenced this pull request Sep 2, 2023
…erent result

The code in the attached test used to work correctly in PHP 8.0, but not
in 8.1+. This is because PHP 8.1+ uses a more modern version of pcre2
than PHP 8.0, and that pcre2 versions has a regression.

While upgrading pcre2lib seems to be only done for the master branch, it
is possible to backport upstream fixes to stable branches. This has been
already done in the past in for JIT regressions [1], so it is not
unprecedented.

We backport the upstream pcre2 fix [2].

[1] php@788a701e222
[2] PCRE2Project/pcre2#135
nielsdos added a commit to php/php-src that referenced this pull request Sep 18, 2023
…nt result

The code in the attached test used to work correctly in PHP 8.0, but not
in 8.1+. This is because PHP 8.1+ uses a more modern version of pcre2
than PHP 8.0, and that pcre2 versions has a regression.

While upgrading pcre2lib seems to be only done for the master branch, it
is possible to backport upstream fixes to stable branches. This has been
already done in the past in for JIT regressions [1], so it is not
unprecedented.

We backport the upstream pcre2 fix [2].

[1] 788a701e222
[2] PCRE2Project/pcre2#135

Closes GH-12108.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant