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

Page principale
Supprimer ce message
Auteur: Philip Hazel
Date:  
À: pcre-dev
Sujet: [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 #1 from Philip Hazel <ph10@???> 2008-07-14 17:04:12 ---
When I test this using pcretest on Linux, it works fine (first without the
comment, then with):

PCRE version 7.7 2008-05-07

/(?x)1|2 (?<N>3)/I
Capturing subpattern count = 1
Named capturing subpatterns:
N 1
Options: extended
No first char
No need char

/(?x)1|2 #(?<N>3)/I
Capturing subpattern count = 0
Options: extended
No first char
No need char

I wonder how running on Windows affects it. I am unable to test for myself, as
I do not use Windows. What code are you using to call pcre_fullinfo()? If you
have a compiled version of pcretest, you could try the tests I ran, to see if
it is good or bad when pcretest does it.


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