History log of /PHP-8.3/ext/pcre/tests/gh11956.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# d61efdfe 02-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

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+

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] https://github.com/php/php-src/commit/788a701e222
[2] https://github.com/PCRE2Project/pcre2/pull/135

Closes GH-12108.

show more ...