You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting with PHP 7.4.7 PCRE2 {x} no longer matches but {x-1,x+1} does. For a more full explanation see this bug off another project where the project owner was like "upstream and here is proof, go file with PHP" so here I am :)
basically with the string "aa" [a]{1,3} matches but [a]{2} does not as of PHP 7.4.7.
PHP is currently on PCRE2 10.39, which is the latest version. 3v4l says the problem started in 7.4.6 which corresponds to PCRE2 10.34, and looking through the changelog I do see a handful of changes regarding single-character repetition between then and now.
Just an aside at @damianwadley as I feel his pain, yeah Tenable Security Center doesn't allow case insensitivity for it's PCRE asset matching and sys admins can't be counted on to consistently case DNS A records so it leads to nightmares like that lol. I got hundreds of similar ones, some even more atrocious.
And yes I have literally seen in my zone file (even right now): Server1, server2, SERVER3, SeRvEr4, SerVer5 ...
Description
Starting with PHP 7.4.7 PCRE2 {x} no longer matches but {x-1,x+1} does. For a more full explanation see this bug off another project where the project owner was like "upstream and here is proof, go file with PHP" so here I am :)
basically with the string "aa" [a]{1,3} matches but [a]{2} does not as of PHP 7.4.7.
firasdib/Regex101#1704 (comment)
PHP Version
PHP 7.4.7
Operating System
No idea, whatever Tenable Security Center runs.
The text was updated successfully, but these errors were encountered: