[pcre-dev] [Bug 781] pcreposix regexec shall set PCRE_NOTEMP…

Page principale
Supprimer ce message
Auteur: Philip Hazel
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 781] pcreposix regexec shall set PCRE_NOTEMPTY
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID





--- Comment #2 from Philip Hazel <ph10@???> 2008-11-01 20:47:29 ---
The PC in PCRE means "Perl-compatible". PCRE is *not* POSIX compatible. The
documentation clearly states that the POSIX interface is just that; it is an
API that uses the POSIX functions calls, but the behaviour of the matching
process is not altered. If you match the string 'b' against 'a?|b?' in Perl,
you get exactly the same result as PCRE.

Applying your patch would give POSIX-like behaviour in just this one, special
case, leaving the rest of PCRE's behaviour unchanged. This, I am sure, would be
wrong.

So, I'm sorry, but I cannot accept your patch.


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