php-src/ext/pcre
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
..
pcre2lib Fix GH-11956: PCRE regular expressions with JIT enabled gives different result 2023-09-18 20:11:56 +02:00
tests Fix GH-11956: PCRE regular expressions with JIT enabled gives different result 2023-09-18 20:11:56 +02:00
config.w32 Merge branch 'PHP-7.4' 2019-05-25 11:42:14 +02:00
config0.m4 Fix typo "without-pcre-jit" 2021-07-06 11:47:00 +02:00
CREDITS
php_pcre.c Revert "Mangle PCRE regex cache key with JIT option" 2023-06-22 23:13:37 +02:00
php_pcre.def Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
php_pcre.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_pcre.stub.php Merge branch 'PHP-8.0' into PHP-8.1 2021-11-18 10:37:18 +01:00
php_pcre_arginfo.h Merge branch 'PHP-8.0' into PHP-8.1 2021-11-18 10:37:18 +01:00