[pcre-dev] [Bug 733] New: pcre_fullinfo() returns wrong PCR…

Page principale
Supprimer ce message
Auteur: Dmitry Ukolov
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 733] New: pcre_fullinfo() returns wrong PCRE_INFO_NAMECOUNT on some patterns
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=733
           Summary: pcre_fullinfo() returns wrong PCRE_INFO_NAMECOUNT on
                    some patterns
           Product: PCRE
           Version: N/A
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: bug
          Priority: high
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: udmitry@???
                CC: pcre-dev@???



Hi,
pcre_fullinfo() someone returns wrong PCRE_INFO_NAMECOUNT
(checked on PCRE version 7.7 and 7.1)

for pattern
(?x)1|2 #(?<N>3)
pcre_fullinfo(..PCRE_INFO_NAMECOUNT..) returns 1, although named subpattern is
placed after #

for pattern
(?x)1 #(?<N>3)

it works fine, returns 0

Bug reproduces on version 7.7 (compiled with Borland free CPP compiler), and
also on precompiled binary for Windows (from
http://gnuwin32.sourceforge.net/packages/pcre.htm)


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email