|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: daniel at milde dot cz
New email:
PHP Version: OS:


 [2014-05-09 09:07 UTC] daniel at milde dot cz
There is bug causing min/max quantifiers to not work in ungreedy mode in PCRE 8.34.

Bug is fixed in PCRE 8.35.

Test script:
echo preg_match('/a{1,3}b/U', 'ab');

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-09 19:39 UTC]
-Assigned To: +Assigned To: ab
 [2014-05-09 20:20 UTC]
-Status: Assigned +Status: Closed
 [2014-05-09 20:20 UTC]
Fixed in c62f32c3cc6e85a525dd959bd821c754b9c20e63, thanks for reporting.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Mar 27 03:03:41 2023 UTC