[pcre-dev] [Fwd: Re: [Bug 733] pcre_fullinfo() returns wrong…

Page principale
Supprimer ce message
Auteur: Sheri
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Fwd: Re: [Bug 733] pcre_fullinfo() returns wrong PCRE_INFO_NAMECOUNT on some patterns]
For some reason my messages are rejected by bugs.exim.org, so forwarding
here.

-------- Original Message --------
Subject:     Re: [pcre-dev] [Bug 733] pcre_fullinfo() returns wrong 
PCRE_INFO_NAMECOUNT on some patterns
Date:     Tue, 15 Jul 2008 08:49:22 -0400
From:     Sheri <silvermoonwoman@???>
To:     733@???
References:     <bug-733-288@???/> 
<E1KISzG-00055j-Vp@???>




Philip Hazel wrote:
> ------- 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 #4 from Philip Hazel <ph10@???> 2008-07-14 19:41:26 ---
> On Mon, 14 Jul 2008, Dmitry Ukolov wrote:
>
>
>> --- Comment #2 from Dmitry Ukolov <udmitry@???> 2008-07-14 18:00:21 ---
>> I have compiled PCRETEST 7.0, downloaded from
>> http://gnuwin32.sourceforge.net/packages/pcre.htm (file URL is
>> http://gnuwin32.sourceforge.net/downlinks/pcre-bin-zip.php)
>>
>> results of test:
>>
>> PCRE version 7.0 18-Dec-2006
>>
>> re> /(?x)1|2# (?<N>3)/I
>> Capturing subpattern count = 0
>> Named capturing subpatterns:
>> BSX 11862
>>
>
> That result is nonsense, of course. If there are no capturing
> subpatterns, there cannot be any named capturing subpatterns. Something
> is going wrong on your Windows box. I have no idea what it might be. I
> don't use Windows, so I haven't any idea as to what to do to find out
> what is causing the problem.
>
> What output do you get from
>
> /(?x)1|2# (?<N>3)/D
>
> in pcretest? (Use "D" instead of "I" to get more debugging info.)
>
> Are there any Windows users on the pcre-dev list (to which this message
> goes) who are able to help debug this?
>
> Regards,
> Philip
>
>
>

FWIW, here below is output from version 7.7 on Windows (shared library
compiled with Msys/mingw, No stack option.

Regards,
Sheri


C:\pcre-7.7\Msys_7.7_shared>pcretest
PCRE version 7.7 2008-05-07

re> /(?x) (1|2) # (?<N>3)/I

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

Capturing subpattern count = 0
Named capturing subpatterns:
     0
Options: extended
No first char
No need char
data>

re> /(?x)1|2# (?<N>3)/D

------------------------------------------------------------------
 0   5 Bra
 3     1
 5   5 Alt
 8     2
10  10 Ket
13     End
------------------------------------------------------------------
Capturing subpattern count = 0
Named capturing subpatterns:
     0
Options: extended
No first char
No need char
data>