php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67238 Ungreedy and min/max quantifier bug in PCRE 8.34 upstream
Submitted: 2014-05-09 09:07 UTC Modified: 2014-05-09 20:20 UTC
From: daniel at milde dot cz Assigned: ab (profile)
Status: Closed Package: PCRE related
PHP Version: 5.5.12 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
38 - 34 = ?
Subscribe to this entry?

 
 [2014-05-09 09:07 UTC] daniel at milde dot cz
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-09 19:39 UTC] ab@php.net
-Assigned To: +Assigned To: ab
 [2014-05-09 20:20 UTC] ab@php.net
-Status: Assigned +Status: Closed
 [2014-05-09 20:20 UTC] ab@php.net
Fixed in c62f32c3cc6e85a525dd959bd821c754b9c20e63, thanks for reporting.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 10:01:24 2020 UTC