-
Notifications
You must be signed in to change notification settings - Fork 8k
Test support for libpcre2 10.47 #20397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: PHP-8.3
Are you sure you want to change the base?
Conversation
c86275d to
cfd8972
Compare
|
(Sorry, I forgot to rebase on 8.3 before opening the PR and confused the hell out of the label/review bot.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming the change in libpcre2 is intentional.
ext/pcre/tests/grep2.phpt
Outdated
| ?> | ||
| --EXPECTF-- | ||
| Warning: preg_grep(): Compilation failed: quantifier does not follow a repeatable item at offset 0 in %sgrep2.php on line %d | ||
| Warning: preg_grep(): Compilation failed: quantifier does not follow a repeatable item at offset %d in %sgrep2.php on line %d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use %r(0|1)%r instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I forgot about %r :)
Done!
|
It was intentional, I went digging: PCRE2Project/pcre2#756 |
cfd8972 to
245b796
Compare
In the latest version of libpcre2, the offsets appearing in some "compilation failed" warnings have increased by one, as a result of PCRE2Project/pcre2#756 This is causing spurious test failures, so in this commit we replace the hard-coded offsets by a regex that matches both values. Gentoo-bug: https://bugs.gentoo.org/965018
245b796 to
5f61eeb
Compare
In the latest version of libpcre2, the offsets appearing in some "compilation failed" warnings have increased by one due to PCRE2Project/pcre2#756. This is causing spurious test failures, so in this commit we replace the hard-coded offsets by
%dto match any integer.An example failure:
This was originally reported as https://bugs.gentoo.org/965018