php-src/ext/pcre/pcre2lib
Niels Dossche d61efdfe97 Fix GH-11956: PCRE regular expressions with JIT enabled gives different 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] 788a701e22
[2] https://github.com/PCRE2Project/pcre2/pull/135

Closes GH-12108.
2023-09-18 20:11:56 +02:00
..
sljit Fix pcre.jit on Apple Silicon 2022-08-31 14:22:44 +02:00
config.h Fix [-Wundef] warning in PCRE extension 2020-05-20 14:01:10 +02:00
pcre2.h Update to PCRE2 10.39 2021-11-25 18:38:31 +01:00
pcre2_auto_possess.c pcre2lib: Pull PCRE2 10.37 2021-05-29 14:52:27 +02:00
pcre2_chartables.c pcre2lib: Fix wrong check-in 2021-05-29 15:11:09 +02:00
pcre2_compile.c Update to PCRE2 10.39 2021-11-25 18:38:31 +01:00
pcre2_config.c Update to PCRE2 10.35 2020-09-17 14:07:05 +02:00
pcre2_context.c Upgrade to PCRE2 10.34 2020-04-22 14:23:26 +02:00
pcre2_convert.c Upgrade bundled PCRE2 to 10.33 2019-05-25 11:37:30 +02:00
pcre2_dfa_match.c Update to PCRE2 10.39 2021-11-25 18:38:31 +01:00
pcre2_error.c Update to PCRE2 10.39 2021-11-25 18:38:31 +01:00
pcre2_extuni.c Upgrade bundled PCRE2 to 10.33 2019-05-25 11:37:30 +02:00
pcre2_find_bracket.c Upgrade PCRE2 to 10.32 2018-09-21 15:54:14 +02:00
pcre2_internal.h Update to PCRE2 10.35 2020-09-17 14:07:05 +02:00
pcre2_intmodedep.h Upgrade to PCRE2 10.34 2020-04-22 14:23:26 +02:00
pcre2_jit_compile.c Fix GH-11956: PCRE regular expressions with JIT enabled gives different result 2023-09-18 20:11:56 +02:00
pcre2_jit_match.c Upgrade to PCRE2 10.34 2020-04-22 14:23:26 +02:00
pcre2_jit_misc.c pcre2lib: Pull PCRE2 10.37 2021-05-29 14:52:27 +02:00
pcre2_jit_neon_inc.h pcre2lib: Pull PCRE2 10.37 2021-05-29 14:52:27 +02:00
pcre2_jit_simd_inc.h Update to PCRE2 10.39 2021-11-25 18:38:31 +01:00
pcre2_maketables.c Update to PCRE2 10.35 2020-09-17 14:07:05 +02:00
pcre2_match.c Update to PCRE2 10.39 2021-11-25 18:38:31 +01:00
pcre2_match_data.c Upgrade to PCRE2 10.34 2020-04-22 14:23:26 +02:00
pcre2_newline.c
pcre2_ord2utf.c
pcre2_pattern_info.c Upgrade PCRE2 to 10.32 2018-09-21 15:54:14 +02:00
pcre2_printint.c Upgrade to PCRE2 10.34 2020-04-22 14:23:26 +02:00
pcre2_script_run.c Upgrade bundled PCRE2 to 10.33 2019-05-25 11:37:30 +02:00
pcre2_serialize.c Update to PCRE2 10.35 2020-09-17 14:07:05 +02:00
pcre2_string_utils.c Upgrade PCRE2 to 10.32 2018-09-21 15:54:14 +02:00
pcre2_study.c Update to PCRE2 10.35 2020-09-17 14:07:05 +02:00
pcre2_substitute.c Update to PCRE2 10.35 2020-09-17 14:07:05 +02:00
pcre2_substring.c Upgrade bundled PCRE2 to 10.31 2018-02-14 13:44:38 +01:00
pcre2_tables.c Update to PCRE2 10.39 2021-11-25 18:38:31 +01:00
pcre2_ucd.c Update to PCRE2 10.39 2021-11-25 18:38:31 +01:00
pcre2_ucp.h Update to PCRE2 10.39 2021-11-25 18:38:31 +01:00
pcre2_valid_utf.c Update to PCRE2 10.35 2020-09-17 14:07:05 +02:00
pcre2_xclass.c Upgrade bundled PCRE2 to 10.33 2019-05-25 11:37:30 +02:00