Fix #81424: PCRE2 10.35 JIT performance regression

We backport the respective upstream fix[1] to our bundled pcre2lib plus
the follow-up fix[2] for a functional regression.

[1] <dc5f966635>
[2] <e7af7efaa1>

Closes GH-7573.
This commit is contained in:
Christoph M. Becker 2021-10-12 12:04:16 +02:00
parent fcabe693ba
commit 788a701e22
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6
3 changed files with 28 additions and 4 deletions

View file

@ -0,0 +1,18 @@
--TEST--
Bug #81424 (PCRE2 10.35 JIT performance regression)
--DESCRIPTION--
We're testing against the functional regression which has been introduced by
fixing the performance regression.
--FILE--
<?php
var_dump(
preg_match('/(?P<size>\d+)m|M/', "4M", $m),
$m
);
?>
--EXPECT--
int(1)
array(1) {
[0]=>
string(1) "M"
}