Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74105 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44037 invoked from network); 9 May 2014 19:38:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2014 19:38:55 -0000 Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:40432] helo=klapt.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/E9-15882-ACE2D635 for ; Fri, 09 May 2014 15:38:51 -0400 Received: by klapt.com (Postfix, from userid 33) id 4C65623D6106; Fri, 9 May 2014 21:38:48 +0200 (CEST) Received: from 94.216.58.240 (SquirrelMail authenticated user anatol@belski.net) by webmail.klapt.com with HTTP; Fri, 9 May 2014 21:38:48 +0200 Message-ID: In-Reply-To: References: Date: Fri, 9 May 2014 21:38:48 +0200 To: "Levi Morrison" Cc: "internals" User-Agent: SquirrelMail/1.5.2 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] PCRE Regression (major) From: anatol.php@belski.net ("Anatol Belski") Hi Levi, On Fri, May 9, 2014 20:55, Levi Morrison wrote: > 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 > > 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