[pcre-dev] [Bug 760] Named patterns with same index conflict

Páxina inicial
Borrar esta mensaxe
Autor: Philip Hazel
Data:  
Para: pcre-dev
Asunto: [pcre-dev] [Bug 760] Named patterns with same index conflict
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=760




--- Comment #1 from Philip Hazel <ph10@???> 2008-09-13 09:44:49 ---
On Fri, 12 Sep 2008, Stan Vassilev wrote:

> This bug is caused by the inability of PCRE to differentiate and/or report
> named subpatterns that share numerican index, through its current interface.


This is a classic case of adding a feature (switch group) without
realizing the effect it would have on other features (names).

> I'd suggest a flag is maintained internally or additional information / calls
> are introduced to handle this special case for named subpatterns in a switch
> group, so that implementers can report the correct name and fix this bug.


I will think about this - but as PCRE 7.8 is only just out, it will not
happen immediately. Incidentally, do you know what Perl 5.10 does in
this situation? (I don't yet have Perl 5.10).

Philip


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