mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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:
parent
fcabe693ba
commit
788a701e22
3 changed files with 28 additions and 4 deletions
18
ext/pcre/tests/bug81424a.phpt
Normal file
18
ext/pcre/tests/bug81424a.phpt
Normal 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"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue