[pcre-dev] [Bug 733] pcre_fullinfo() returns wrong PCRE_INF…

Página superior
Eliminar este mensaje
Autor: Dmitry Ukolov
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] [Bug 733] 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




--- Comment #7 from Dmitry Ukolov <udmitry@???> 2008-07-15 19:01:19 ---
(In reply to comment #6)
> On Tue, 15 Jul 2008, Dmitry Ukolov wrote:
> > Result is:
> >
> > PCRE version 7.0 18-Dec-2006
> >
> >   re> /(?x)1|2# (?<N>3)/D
> > -------------------------------
> >   0   5 Bra 0
> >   3     1
> >   5   5 Alt
> >   8     2
> >  10  10 Ket
> >  13     End
> > -------------------------------
> > Capturing subpattern count = 0
> > Named capturing subpatterns:          <=================
> >   =DX   30309                         <=================
> > Options: extended
> > No first char
> > No need char
> That is all as expected, *except* for the two lines I've marked, which 
> should not be there. The count of named subpatterns is obviously 
> incorrect. I do not know what to do now. We need someone with Windows 
> programming experience to find out exactly what is going wrong.
> Regards,
> Philip


I try pcretest with <cr>, <lf>, <crlf> and <any>, but result is same.

Philip, I workaround this problem, breaking subpattern.

I try to debug the code later, but I 13 year not worked with C, and source text
too complex and large.

Thank's.


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