I've been trying to make a habit of watching new bug reports and today this
one came in: https://bugs.php.net/bug.php?id=67238 This is a pretty severe
regression that should be fixed upstream. Felipe suggested I post it here.
It's small enough I'll post the bug report here too:
Description:
There is bug causing min/max quantifiers to not work in ungreedy mode
in PCRE 8.34.
http://bugs.exim.org/show_bug.cgi?id=1451
Bug is fixed in PCRE 8.35.
Test script:
echo preg_match('/a{1,3}b/U', 'ab');
Expected result:
1
Actual result:
0
Hi Levi,
I've been trying to make a habit of watching new bug reports and today
this one came in: https://bugs.php.net/bug.php?id=67238 This is a pretty
severe regression that should be fixed upstream. Felipe suggested I post
it here.It's small enough I'll post the bug report here too:
Description:
There is bug causing min/max quantifiers to not work in ungreedy mode
in PCRE 8.34. http://bugs.exim.org/show_bug.cgi?id=1451Bug is fixed in PCRE 8.35.
Test script:
echo preg_match('/a{1,3}b/U', 'ab');
Expected result:
1
Actual result:
0
the patch from the linked PCRE bug report looks fine. I'm going to apply
it to 5.5+ and add a test.
Thanks
anatol