]> granicus.if.org Git - php/commitdiff
final PCRE 7.2 release :-)
authorNuno Lopes <nlopess@php.net>
Tue, 19 Jun 2007 17:11:30 +0000 (17:11 +0000)
committerNuno Lopes <nlopess@php.net>
Tue, 19 Jun 2007 17:11:30 +0000 (17:11 +0000)
ext/pcre/pcrelib/ChangeLog
ext/pcre/pcrelib/NEWS
ext/pcre/pcrelib/config.h
ext/pcre/pcrelib/doc/pcre.txt
ext/pcre/pcrelib/pcre.h
ext/pcre/pcrelib/pcre_exec.c
ext/pcre/pcrelib/testdata/testinput6
ext/pcre/pcrelib/testdata/testinput9
ext/pcre/pcrelib/testdata/testoutput6
ext/pcre/pcrelib/testdata/testoutput9

index fb2747fd09187e7a30b24339dced284bb8880013..87c2de74dcc892087be98c73b93ba3b8ac12a2bd 100644 (file)
@@ -1,7 +1,7 @@
 ChangeLog for PCRE
 ------------------
 
-Version 7.2 13-June-07
+Version 7.2 19-June-07
 ---------------------
 
  1. If the fr_FR locale cannot be found for test 3, try the "french" locale,
@@ -69,6 +69,9 @@ Version 7.2 13-June-07
       pcrecpp::RE("a*?").FullMatch("aaa") does not, and
       pcrecpp::RE("a*?\\z").FullMatch("aaa") does again.
 
+12. If \p or \P was used in non-UTF-8 mode on a character greater than 127
+    it matched the wrong number of bytes.
+
 
 Version 7.1 24-Apr-07
 ---------------------
index 26d0999d9197fbf9b326dac4660cbcdcfd35e3ba..f1083e86011548936ce125a393e53ebc3b00c053 100644 (file)
@@ -2,7 +2,7 @@ News about PCRE releases
 ------------------------
 
 
-Release 7.2 13-Jun-07
+Release 7.2 19-Jun-07
 ---------------------
 
 WARNING: saved patterns that were compiled by earlier versions of PCRE must be
index 291398962411ed176ffd7dfebc9de20e4752820f..510197fa3e5e2e1c2ae2facf8c2949c8e3e30b0d 100644 (file)
@@ -224,13 +224,13 @@ them both to 0; an emulation function will be used. */
 #define PACKAGE_NAME "PCRE"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "PCRE 7.2-RC3"
+#define PACKAGE_STRING "PCRE 7.2"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "pcre"
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "7.2-RC3"
+#define PACKAGE_VERSION "7.2"
 
 
 /* If you are compiling for a system other than a Unix-like system or
@@ -272,7 +272,7 @@ them both to 0; an emulation function will be used. */
 
 /* Version number of package */
 #ifndef VERSION
-#define VERSION "7.2-RC3"
+#define VERSION "7.2"
 #endif
 
 /* Define to empty if `const' does not conform to ANSI C. */
index e55cf01c3af40a406fc0eaf29fc4024c5f52bf4c..823f15c4400192ecf3ba2fff2c1422b456aa709c 100644 (file)
@@ -3047,8 +3047,10 @@ BACKSLASH
    Unicode character properties
 
        When PCRE is built with Unicode character property support, three addi-
-       tional escape sequences to match  character  properties  are  available
-       when UTF-8 mode is selected. They are:
+       tional escape sequences that match characters with specific  properties
+       are  available.   When not in UTF-8 mode, these sequences are of course
+       limited to testing characters whose codepoints are less than  256,  but
+       they do work in this mode.  The extra escape sequences are:
 
          \p{xx}   a character with the xx property
          \P{xx}   a character without the xx property
@@ -3162,7 +3164,9 @@ BACKSLASH
        That is, it matches a character without the "mark"  property,  followed
        by  zero  or  more  characters with the "mark" property, and treats the
        sequence as an atomic group (see below).  Characters  with  the  "mark"
-       property are typically accents that affect the preceding character.
+       property  are  typically  accents  that affect the preceding character.
+       None of them have codepoints less than 256, so  in  non-UTF-8  mode  \X
+       matches any one character.
 
        Matching  characters  by Unicode property is not fast, because PCRE has
        to search a structure that contains  data  for  over  fifteen  thousand
@@ -4539,7 +4543,7 @@ AUTHOR
 
 REVISION
 
-       Last updated: 13 June 2007
+       Last updated: 19 June 2007
        Copyright (c) 1997-2007 University of Cambridge.
 ------------------------------------------------------------------------------
 
index 924a817bbffb9c6aa836c6f859fe71d3a750c9e5..73998962989ff7fb00f7d88dfbc23e03b1dd19eb 100644 (file)
@@ -43,8 +43,8 @@ POSSIBILITY OF SUCH DAMAGE.
 
 #define PCRE_MAJOR          7
 #define PCRE_MINOR          2
-#define PCRE_PRERELEASE     -RC3
-#define PCRE_DATE           2007-06-13
+#define PCRE_PRERELEASE     
+#define PCRE_DATE           2007-06-19
 
 /* When an application links to a PCRE DLL in Windows, the symbols that are
 imported have to be identified as such. When building PCRE, the appropriate
index f62b5fc18e04d60ebbee9818c5cdef16582d6e2a..a749a216ea043f3cf92bba8d8d496b07baf5be8b 100644 (file)
@@ -2786,7 +2786,7 @@ for (;;)
           for (i = 1; i <= min; i++)
             {
             if (eptr >= md->end_subject) RRETURN(MATCH_NOMATCH);
-            GETCHARINC(c, eptr);
+            GETCHARINCTEST(c, eptr);
             }
           break;
 
@@ -2794,7 +2794,7 @@ for (;;)
           for (i = 1; i <= min; i++)
             {
             if (eptr >= md->end_subject) RRETURN(MATCH_NOMATCH);
-            GETCHARINC(c, eptr);
+            GETCHARINCTEST(c, eptr);
             prop_category = _pcre_ucp_findprop(c, &prop_chartype, &prop_script);
             if ((prop_chartype == ucp_Lu ||
                  prop_chartype == ucp_Ll ||
@@ -2807,7 +2807,7 @@ for (;;)
           for (i = 1; i <= min; i++)
             {
             if (eptr >= md->end_subject) RRETURN(MATCH_NOMATCH);
-            GETCHARINC(c, eptr);
+            GETCHARINCTEST(c, eptr);
             prop_category = _pcre_ucp_findprop(c, &prop_chartype, &prop_script);
             if ((prop_category == prop_value) == prop_fail_result)
               RRETURN(MATCH_NOMATCH);
@@ -2818,7 +2818,7 @@ for (;;)
           for (i = 1; i <= min; i++)
             {
             if (eptr >= md->end_subject) RRETURN(MATCH_NOMATCH);
-            GETCHARINC(c, eptr);
+            GETCHARINCTEST(c, eptr);
             prop_category = _pcre_ucp_findprop(c, &prop_chartype, &prop_script);
             if ((prop_chartype == prop_value) == prop_fail_result)
               RRETURN(MATCH_NOMATCH);
@@ -2829,7 +2829,7 @@ for (;;)
           for (i = 1; i <= min; i++)
             {
             if (eptr >= md->end_subject) RRETURN(MATCH_NOMATCH);
-            GETCHARINC(c, eptr);
+            GETCHARINCTEST(c, eptr);
             prop_category = _pcre_ucp_findprop(c, &prop_chartype, &prop_script);
             if ((prop_script == prop_value) == prop_fail_result)
               RRETURN(MATCH_NOMATCH);
index 1028845b0b943599596dc22f40eb3edcf85c7817..05e8feb026f76c02829ace9d596e9be620b16ec3 100644 (file)
@@ -771,5 +771,11 @@ was broken in all cases./
   
 /^\x{023a}+([^X])/8i
   \x{023a}\x{2c65}X
+
+/Check property support in non-UTF-8 mode/
  
+/\p{L}{4}/
+    123abcdefg
+    123abc\xc4\xc5zz
+
 / End of testinput6 /
index e11dda1bf5d8e0c7ef862689c2bd5f8f2ea44196..07d9548af556ae481dd2b3790b8e29d57a14cb16 100644 (file)
 /^\x{023a}+([^X])/8i
   \x{023a}\x{2c65}X
  
+/Check property support in non-UTF-8 mode/
+/\p{L}{4}/
+    123abcdefg
+    123abc\xc4\xc5zz
+
 / End / 
index f6a1d0e22938f5e9de0da686e37cb83706700a1a..776eed4e5f3f963012df3f12d3ece132bd04da87 100644 (file)
@@ -1443,5 +1443,13 @@ was broken in all cases./
   \x{023a}\x{2c65}X
  0: \x{23a}\x{2c65}
  1: \x{2c65}
+
+/Check property support in non-UTF-8 mode/
  
+/\p{L}{4}/
+    123abcdefg
+ 0: abcd
+    123abc\xc4\xc5zz
+ 0: abc\xc4
+
 / End of testinput6 /
index 2cc61ac5930cc0c5a7cb2e8d14e28b870ea225df..bc5f0e71a2dccf3dc6e6e9f04ac350a026fe3e6b 100644 (file)
@@ -1632,4 +1632,12 @@ No match
   \x{023a}\x{2c65}X
  0: \x{23a}\x{2c65}
  
+/Check property support in non-UTF-8 mode/
+/\p{L}{4}/
+    123abcdefg
+ 0: abcd
+    123abc\xc4\xc5zz
+ 0: abc\xc4
+
 / End /