-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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] <PCRE2Project/pcre2@dc5f966> [2] <PCRE2Project/pcre2@e7af7ef> Closes GH-7573.
- Loading branch information
Showing
3 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |