⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changelog

📁 以便Apache与其他服务进行整合 Mod_JK安装
💻
📖 第 1 页 / 共 5 页
字号:
ChangeLog for PCRE------------------Version 5.0 13-Sep-04--------------------- 1. Internal change: literal characters are no longer packed up into items    containing multiple characters in a single byte-string. Each character    is now matched using a separate opcode. However, there may be more than one    byte in the character in UTF-8 mode. 2. The pcre_callout_block structure has two new fields: pattern_position and    next_item_length. These contain the offset in the pattern to the next match    item, and its length, respectively. 3. The PCRE_AUTO_CALLOUT option for pcre_compile() requests the automatic    insertion of callouts before each pattern item. Added the /C option to    pcretest to make use of this. 4. On the advice of a Windows user, the lines      #if defined(_WIN32) || defined(WIN32)      _setmode( _fileno( stdout ), 0x8000 );      #endif  /* defined(_WIN32) || defined(WIN32) */    have been added to the source of pcretest. This apparently does useful    magic in relation to line terminators. 5. Changed "r" and "w" in the calls to fopen() in pcretest to "rb" and "wb"    for the benefit of those environments where the "b" makes a difference. 6. The icc compiler has the same options as gcc, but "configure" doesn't seem    to know about it. I have put a hack into configure.in that adds in code    to set GCC=yes if CC=icc. This seems to end up at a point in the    generated configure script that is early enough to affect the setting of    compiler options, which is what is needed, but I have no means of testing    whether it really works. (The user who reported this had patched the    generated configure script, which of course I cannot do.)    LATER: After change 22 below (new libtool files), the configure script    seems to know about icc (and also ecc). Therefore, I have commented out    this hack in configure.in. 7. Added support for pkg-config (2 patches were sent in). 8. Negated POSIX character classes that used a combination of internal tables    were completely broken. These were [[:^alpha:]], [[:^alnum:]], and    [[:^ascii]]. Typically, they would match almost any characters. The other    POSIX classes were not broken in this way. 9. Matching the pattern "\b.*?" against "ab cd", starting at offset 1, failed    to find the match, as PCRE was deluded into thinking that the match had to    start at the start point or following a newline. The same bug applied to    patterns with negative forward assertions or any backward assertions    preceding ".*" at the start, unless the pattern required a fixed first    character. This was a failing pattern: "(?!.bcd).*". The bug is now fixed.10. In UTF-8 mode, when moving forwards in the subject after a failed match    starting at the last subject character, bytes beyond the end of the subject    string were read.11. Renamed the variable "class" as "classbits" to make life easier for C++    users. (Previously there was a macro definition, but it apparently wasn't    enough.)12. Added the new field "tables" to the extra data so that tables can be passed    in at exec time, or the internal tables can be re-selected. This allows    a compiled regex to be saved and re-used at a later time by a different    program that might have everything at different addresses.13. Modified the pcre-config script so that, when run on Solaris, it shows a    -R library as well as a -L library.14. The debugging options of pcretest (-d on the command line or D on a    pattern) showed incorrect output for anything following an extended class    that contained multibyte characters and which was followed by a quantifier.15. Added optional support for general category Unicode character properties    via the \p, \P, and \X escapes. Unicode property support implies UTF-8    support. It adds about 90K to the size of the library. The meanings of the    inbuilt class escapes such as \d and \s have NOT been changed.16. Updated pcredemo.c to include calls to free() to release the memory for the    compiled pattern.17. The generated file chartables.c was being created in the source directory    instead of in the building directory. This caused the build to fail if the    source directory was different from the building directory, and was    read-only.18. Added some sample Win commands from Mark Tetrode into the NON-UNIX-USE    file. No doubt somebody will tell me if they don't make sense... Also added    Dan Mooney's comments about building on OpenVMS.19. Added support for partial matching via the PCRE_PARTIAL option for    pcre_exec() and the \P data escape in pcretest.20. Extended pcretest with 3 new pattern features:    (i)   A pattern option of the form ">rest-of-line" causes pcretest to          write the compiled pattern to the file whose name is "rest-of-line".          This is a straight binary dump of the data, with the saved pointer to          the character tables forced to be NULL. The study data, if any, is          written too. After writing, pcretest reads a new pattern.    (ii)  If, instead of a pattern, "<rest-of-line" is given, pcretest reads a          compiled pattern from the given file. There must not be any          occurrences of "<" in the file name (pretty unlikely); if there are,          pcretest will instead treat the initial "<" as a pattern delimiter.          After reading in the pattern, pcretest goes on to read data lines as          usual.    (iii) The F pattern option causes pcretest to flip the bytes in the 32-bit          and 16-bit fields in a compiled pattern, to simulate a pattern that          was compiled on a host of opposite endianness.21. The pcre-exec() function can now cope with patterns that were compiled on    hosts of opposite endianness, with this restriction:      As for any compiled expression that is saved and used later, the tables      pointer field cannot be preserved; the extra_data field in the arguments      to pcre_exec() should be used to pass in a tables address if a value      other than the default internal tables were used at compile time.22. Calling pcre_exec() with a negative value of the "ovecsize" parameter is    now diagnosed as an error. Previously, most of the time, a negative number    would have been treated as zero, but if in addition "ovector" was passed as    NULL, a crash could occur.23. Updated the files ltmain.sh, config.sub, config.guess, and aclocal.m4 with    new versions from the libtool 1.5 distribution (the last one is a copy of    a file called libtool.m4). This seems to have fixed the need to patch    "configure" to support Darwin 1.3 (which I used to do). However, I still    had to patch ltmain.sh to ensure that ${SED} is set (it isn't on my    workstation).24. Changed the PCRE licence to be the more standard "BSD" licence.Version 4.5 01-Dec-03--------------------- 1. There has been some re-arrangement of the code for the match() function so    that it can be compiled in a version that does not call itself recursively.    Instead, it keeps those local variables that need separate instances for    each "recursion" in a frame on the heap, and gets/frees frames whenever it    needs to "recurse". Keeping track of where control must go is done by means    of setjmp/longjmp. The whole thing is implemented by a set of macros that    hide most of the details from the main code, and operates only if    NO_RECURSE is defined while compiling pcre.c. If PCRE is built using the    "configure" mechanism, "--disable-stack-for-recursion" turns on this way of    operating.    To make it easier for callers to provide specially tailored get/free    functions for this usage, two new functions, pcre_stack_malloc, and    pcre_stack_free, are used. They are always called in strict stacking order,    and the size of block requested is always the same.    The PCRE_CONFIG_STACKRECURSE info parameter can be used to find out whether    PCRE has been compiled to use the stack or the heap for recursion. The    -C option of pcretest uses this to show which version is compiled.    A new data escape \S, is added to pcretest; it causes the amounts of store    obtained and freed by both kinds of malloc/free at match time to be added    to the output. 2. Changed the locale test to use "fr_FR" instead of "fr" because that's    what's available on my current Linux desktop machine. 3. When matching a UTF-8 string, the test for a valid string at the start has    been extended. If start_offset is not zero, PCRE now checks that it points    to a byte that is the start of a UTF-8 character. If not, it returns    PCRE_ERROR_BADUTF8_OFFSET (-11). Note: the whole string is still checked;    this is necessary because there may be backward assertions in the pattern.    When matching the same subject several times, it may save resources to use    PCRE_NO_UTF8_CHECK on all but the first call if the string is long. 4. The code for checking the validity of UTF-8 strings has been tightened so    that it rejects (a) strings containing 0xfe or 0xff bytes and (b) strings    containing "overlong sequences". 5. Fixed a bug (appearing twice) that I could not find any way of exploiting!    I had written "if ((digitab[*p++] && chtab_digit) == 0)" where the "&&"    should have been "&", but it just so happened that all the cases this let    through by mistake were picked up later in the function. 6. I had used a variable called "isblank" - this is a C99 function, causing    some compilers to warn. To avoid this, I renamed it (as "blankclass"). 7. Cosmetic: (a) only output another newline at the end of pcretest if it is    prompting; (b) run "./pcretest /dev/null" at the start of the test script    so the version is shown; (c) stop "make test" echoing "./RunTest". 8. Added patches from David Burgess to enable PCRE to run on EBCDIC systems. 9. The prototype for memmove() for systems that don't have it was using    size_t, but the inclusion of the header that defines size_t was later. I've    moved the #includes for the C headers earlier to avoid this.10. Added some adjustments to the code to make it easier to compiler on certain    special systems:      (a) Some "const" qualifiers were missing.      (b) Added the macro EXPORT before all exported functions; by default this          is defined to be empty.      (c) Changed the dftables auxiliary program (that builds chartables.c) so          that it reads its output file name as an argument instead of writing          to the standard output and assuming this can be redirected.11. In UTF-8 mode, if a recursive reference (e.g. (?1)) followed a character    class containing characters with values greater than 255, PCRE compilation    went into a loop.12. A recursive reference to a subpattern that was within another subpattern    that had a minimum quantifier of zero caused PCRE to crash. For example,    (x(y(?2))z)? provoked this bug with a subject that got as far as the    recursion. If the recursively-called subpattern itself had a zero repeat,    that was OK.13. In pcretest, the buffer for reading a data line was set at 30K, but the    buffer into which it was copied (for escape processing) was still set at    1024, so long lines caused crashes.14. A pattern such as /[ab]{1,3}+/ failed to compile, giving the error    "internal error: code overflow...". This applied to any character class    that was followed by a possessive quantifier.15. Modified the Makefile to add libpcre.la as a prerequisite for    libpcreposix.la because I was told this is needed for a parallel build to    work.16. If a pattern that contained .* following optional items at the start was    studied, the wrong optimizing data was generated, leading to matching    errors. For example, studying /[ab]*.*c/ concluded, erroneously, that any    matching string must start with a or b or c. The correct conclusion for    this pattern is that a match can start with any character.Version 4.4 13-Aug-03--------------------- 1. In UTF-8 mode, a character class containing characters with values between    127 and 255 was not handled correctly if the compiled pattern was studied.    In fixing this, I have also improved the studying algorithm for such    classes (slightly). 2. Three internal functions had redundant arguments passed to them. Removal    might give a very teeny performance improvement. 3. Documentation bug: the value of the capture_top field in a callout is *one    more than* the number of the hightest numbered captured substring. 4. The Makefile linked pcretest and pcregrep with -lpcre, which could result    in incorrectly linking with a previously installed version. They now link    explicitly with libpcre.la. 5. configure.in no longer needs to recognize Cygwin specially. 6. A problem in pcre.in for Windows platforms is fixed. 7. If a pattern was successfully studied, and the -d (or /D) flag was given to    pcretest, it used to include the size of the study block as part of its    output. Unfortunately, the structure contains a field that has a different    size on different hardware architectures. This meant that the tests that    showed this size failed. As the block is currently always of a fixed size,    this information isn't actually particularly useful in pcretest output, so    I have just removed it. 8. Three pre-processor statements accidentally did not start in column 1.    Sadly, there are *still* compilers around that complain, even though    standard C has not required this for well over a decade. Sigh. 9. In pcretest, the code for checking callouts passed small integers in the    callout_data field, which is a void * field. However, some picky compilers    complained about the casts involved for this on 64-bit systems. Now    pcretest passes the address of the small integer instead, which should get    rid of the warnings.10. By default, when in UTF-8 mode, PCRE now checks for valid UTF-8 strings at    both compile and run time, and gives an error if an invalid UTF-8 sequence    is found. There is a option for disabling this check in cases where the    string is known to be correct and/or the maximum performance is wanted.11. In response to a bug report, I changed one line in Makefile.in from        -Wl,--out-implib,.libs/lib@WIN_PREFIX@pcreposix.dll.a \    to

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -