nlopess Tue Jan 29 20:25:48 2008 UTC Modified files: (Branch: PHP_5_2) /php-src NEWS /php-src/ext/pcre/pcrelib AUTHORS ChangeLog LICENCE NEWS NON-UNIX-USE README config.h dftables.c pcre.h pcre_compile.c pcre_config.c pcre_exec.c pcre_fullinfo.c pcre_get.c pcre_globals.c pcre_info.c pcre_internal.h pcre_maketables.c pcre_newline.c pcre_ord2utf8.c pcre_printint.src pcre_refcount.c pcre_study.c pcre_tables.c pcre_try_flipped.c pcre_ucp_searchfuncs.c pcre_valid_utf8.c pcre_version.c pcre_xclass.c pcredemo.c pcregrep.c pcreposix.c pcreposix.h /php-src/ext/pcre/pcrelib/doc pcre.txt /php-src/ext/pcre/pcrelib/testdata testinput4 testoutput4 Log: upgrade to pcre 7.6
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1065&r2=1.2027.2.547.2.1066&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.1065 php-src/NEWS:1.2027.2.547.2.1066 --- php-src/NEWS:1.2027.2.547.2.1065 Tue Jan 29 14:23:18 2008 +++ php-src/NEWS Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ (Ilia) - Fixed a bug with PDO::FETCH_COLUMN|PDO::FETCH_GROUP mode when a column # by which to group by data is specified. (Ilia) -- Upgraded PCRE to version 7.5 (Nuno) +- Upgraded PCRE to version 7.6 (Nuno) - Fixed bug #43954 (Memory leak when sending the same HTTP status code multiple times). (Scott) http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/AUTHORS?r1=1.5.4.2&r2=1.5.4.3&diff_format=u Index: php-src/ext/pcre/pcrelib/AUTHORS diff -u php-src/ext/pcre/pcrelib/AUTHORS:1.5.4.2 php-src/ext/pcre/pcrelib/AUTHORS:1.5.4.3 --- php-src/ext/pcre/pcrelib/AUTHORS:1.5.4.2 Fri Jun 15 19:09:24 2007 +++ php-src/ext/pcre/pcrelib/AUTHORS Tue Jan 29 20:25:47 2008 @@ -8,7 +8,7 @@ University of Cambridge Computing Service, Cambridge, England. -Copyright (c) 1997-2007 University of Cambridge +Copyright (c) 1997-2008 University of Cambridge All rights reserved @@ -17,7 +17,7 @@ Written by: Google Inc. -Copyright (c) 2007 Google Inc +Copyright (c) 2007-2008 Google Inc All rights reserved #### http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/ChangeLog?r1=1.12.2.1.2.6&r2=1.12.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/ChangeLog diff -u php-src/ext/pcre/pcrelib/ChangeLog:1.12.2.1.2.6 php-src/ext/pcre/pcrelib/ChangeLog:1.12.2.1.2.7 --- php-src/ext/pcre/pcrelib/ChangeLog:1.12.2.1.2.6 Mon Jan 14 09:39:40 2008 +++ php-src/ext/pcre/pcrelib/ChangeLog Tue Jan 29 20:25:47 2008 @@ -1,6 +1,54 @@ ChangeLog for PCRE ------------------ +Version 7.6 28-Jan-08 +--------------------- + +1. A character class containing a very large number of characters with + codepoints greater than 255 (in UTF-8 mode, of course) caused a buffer + overflow. + +2. Patch to cut out the "long long" test in pcrecpp_unittest when + HAVE_LONG_LONG is not defined. + +3. Applied Christian Ehrlicher's patch to update the CMake build files to + bring them up to date and include new features. This patch includes: + + - Fixed PH's badly added libz and libbz2 support. + - Fixed a problem with static linking. + - Added pcredemo. [But later removed - see 7 below.] + - Fixed dftables problem and added an option. + - Added a number of HAVE_XXX tests, including HAVE_WINDOWS_H and + HAVE_LONG_LONG. + - Added readline support for pcretest. + - Added an listing of the option settings after cmake has run. + +4. A user submitted a patch to Makefile that makes it easy to create + "pcre.dll" under mingw when using Configure/Make. I added stuff to + Makefile.am that cause it to include this special target, without + affecting anything else. Note that the same mingw target plus all + the other distribution libraries and programs are now supported + when configuring with CMake (see 6 below) instead of with + Configure/Make. + +5. Applied Craig's patch that moves no_arg into the RE class in the C++ code. + This is an attempt to solve the reported problem "pcrecpp::no_arg is not + exported in the Windows port". It has not yet been confirmed that the patch + solves the problem, but it does no harm. + +6. Applied Sheri's patch to CMakeLists.txt to add NON_STANDARD_LIB_PREFIX and + NON_STANDARD_LIB_SUFFIX for dll names built with mingw when configured + with CMake, and also correct the comment about stack recursion. + +7. Remove the automatic building of pcredemo from the ./configure system and + from CMakeLists.txt. The whole idea of pcredemo.c is that it is an example + of a program that users should build themselves after PCRE is installed, so + building it automatically is not really right. What is more, it gave + trouble in some build environments. + +8. Further tidies to CMakeLists.txt from Sheri and Christian. + + Version 7.5 10-Jan-08 --------------------- http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/LICENCE?r1=1.10.2.1.2.3&r2=1.10.2.1.2.4&diff_format=u Index: php-src/ext/pcre/pcrelib/LICENCE diff -u php-src/ext/pcre/pcrelib/LICENCE:1.10.2.1.2.3 php-src/ext/pcre/pcrelib/LICENCE:1.10.2.1.2.4 --- php-src/ext/pcre/pcrelib/LICENCE:1.10.2.1.2.3 Fri Jun 15 19:09:24 2007 +++ php-src/ext/pcre/pcrelib/LICENCE Tue Jan 29 20:25:47 2008 @@ -22,7 +22,7 @@ University of Cambridge Computing Service, Cambridge, England. -Copyright (c) 1997-2007 University of Cambridge +Copyright (c) 1997-2008 University of Cambridge All rights reserved. @@ -31,7 +31,7 @@ Contributed by: Google Inc. -Copyright (c) 2007, Google Inc. +Copyright (c) 2007-2008, Google Inc. All rights reserved. http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/NEWS?r1=1.7.2.1.2.6&r2=1.7.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/NEWS diff -u php-src/ext/pcre/pcrelib/NEWS:1.7.2.1.2.6 php-src/ext/pcre/pcrelib/NEWS:1.7.2.1.2.7 --- php-src/ext/pcre/pcrelib/NEWS:1.7.2.1.2.6 Mon Jan 14 09:39:40 2008 +++ php-src/ext/pcre/pcrelib/NEWS Tue Jan 29 20:25:47 2008 @@ -1,6 +1,14 @@ News about PCRE releases ------------------------ +Release 7.6 28-Jan-08 +--------------------- + +The main reason for having this release so soon after 7.5 is because it fixes a +potential buffer overflow problem in pcre_compile() when run in UTF-8 mode. In +addition, the CMake configuration files have been brought up to date. + + Release 7.5 10-Jan-08 --------------------- http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/NON-UNIX-USE?r1=1.7.2.1.2.4&r2=1.7.2.1.2.5&diff_format=u Index: php-src/ext/pcre/pcrelib/NON-UNIX-USE diff -u php-src/ext/pcre/pcrelib/NON-UNIX-USE:1.7.2.1.2.4 php-src/ext/pcre/pcrelib/NON-UNIX-USE:1.7.2.1.2.5 --- php-src/ext/pcre/pcrelib/NON-UNIX-USE:1.7.2.1.2.4 Mon Jan 14 09:39:40 2008 +++ php-src/ext/pcre/pcrelib/NON-UNIX-USE Tue Jan 29 20:25:47 2008 @@ -8,8 +8,11 @@ The C++ wrapper functions Building for virtual Pascal Stack size in Windows environments + Linking programs in Windows environments Comments about Win32 builds - Building PCRE with CMake + Building PCRE on Windows with CMake + Use of relative paths with CMake on Windows + Testing with runtest.bat Building under Windows with BCC5.5 Building PCRE on OpenVMS @@ -31,10 +34,12 @@ successfully on any system that has a Standard C compiler and library. The C++ wrapper functions are a separate issue (see below). -The PCRE distribution includes support for CMake. This support is relatively -new, but has already been used successfully to build PCRE in multiple build -environments on Windows. There are some instructions in the section entitled -"Building PCRE with CMake" below. +The PCRE distribution includes a "configure" file for use by the Configure/Make +build system, as found in many Unix-like environments. There is also support +support for CMake, which some users prefer, in particular in Windows +environments. There are some instructions for CMake under Windows in the +section entitled "Building PCRE with CMake" below. CMake can also be used to +build PCRE in Unix-like systems. GENERIC INSTRUCTIONS FOR THE PCRE C LIBRARY @@ -177,15 +182,22 @@ "pcrestack" documentation. +LINKING PROGRAMS IN WINDOWS ENVIRONMENTS + +If you want to statically link a program against a PCRE library in the form of +a non-dll .a file, you must define PCRE_STATIC before including pcre.h, +otherwise the pcre_malloc() and pcre_free() exported functions will be declared +__declspec(dllimport), with unwanted results. + + COMMENTS ABOUT WIN32 BUILDS (see also "BUILDING PCRE WITH CMAKE" below) There are two ways of building PCRE using the "configure, make, make install" paradigm on Windows systems: using MinGW or using Cygwin. These are not at all the same thing; they are completely different from each other. There is also -some experimental, undocumented support for building using "cmake", which you -might like to try if you are familiar with "cmake". However, at the present -time, the "cmake" process builds only a static library (not a dll), and the -tests are not automatically run. +support for building using CMake, which some users find a more straightforward +way of building PCRE under Windows. However, the tests are not run +automatically when CMake is used. The MinGW home page (http://www.mingw.org/) says this: @@ -217,10 +229,13 @@ releases of PCRE included the basic libpcre functions in libpcreposix. This no longer happens.) -If you want to statically link your program against a non-dll .a file, you must -define PCRE_STATIC before including pcre.h, otherwise the pcre_malloc() and -pcre_free() exported functions will be declared __declspec(dllimport), with -unwanted results. +A user submitted a special-purpose patch that makes it easy to create +"pcre.dll" under mingw32 using the "msys" environment. It provides "pcre.dll" +as a special target. If you use this target, no other files are built, and in +particular, the pcretest and pcregrep programs are not built. An example of how +this might be used is: + + ./configure --enable-utf --disable-cpp CFLAGS="-03 -s"; make pcre.dll Using Cygwin's compiler generates libraries and executables that depend on cygwin1.dll. If a library that is generated this way is distributed, @@ -252,7 +267,7 @@ things in this area in future. -BUILDING PCRE WITH CMAKE +BUILDING PCRE ON WINDOWS WITH CMAKE CMake is an alternative build facility that can be used instead of the traditional Unix "configure". CMake version 2.4.7 supports Borland makefiles, @@ -260,36 +275,65 @@ 6, Visual Studio 7, Visual Studio 8, and Watcom W8. The following instructions were contributed by a PCRE user. -1. Download CMake 2.4.7 or above from http://www.cmake.org/, install and ensure - that cmake\bin is on your path. +1. Download CMake 2.4.7 or above from http://www.cmake.org/, install and ensure + that cmake\bin is on your path. -2. Unzip (retaining folder structure) the PCRE source tree into a source - directory such as C:\pcre. +2. Unzip (retaining folder structure) the PCRE source tree into a source + directory such as C:\pcre. -3. Create a new, empty build directory: C:\pcre\build\ +3. Create a new, empty build directory: C:\pcre\build\ -4. Run CMakeSetup from the Shell envirornment of your build tool, e.g., Msys - for Msys/MinGW or Visual Studio Command Prompt for VC/VC++ +4. Run CMakeSetup from the Shell envirornment of your build tool, e.g., Msys + for Msys/MinGW or Visual Studio Command Prompt for VC/VC++ -5. Enter C:\pcre\pcre-xx and C:\pcre\build for the source and build - directories, respectively +5. Enter C:\pcre\pcre-xx and C:\pcre\build for the source and build + directories, respectively -6. Hit the "Configure" button. +6. Hit the "Configure" button. -7. Select the particular IDE / build tool that you are using (Visual Studio, - MSYS makefiles, MinGW makefiles, etc.) +7. Select the particular IDE / build tool that you are using (Visual Studio, + MSYS makefiles, MinGW makefiles, etc.) -8. The GUI will then list several configuration options. This is where you can - enable UTF-8 support, etc. +8. The GUI will then list several configuration options. This is where you can + enable UTF-8 support, etc. -9. Hit "Configure" again. The adjacent "OK" button should now be active. +9. Hit "Configure" again. The adjacent "OK" button should now be active. 10. Hit "OK". 11. The build directory should now contain a usable build system, be it a solution file for Visual Studio, makefiles for MinGW, etc. -Testing with RunTest.bat + +USE OF RELATIVE PATHS WITH CMAKE ON WINDOWS + +A PCRE user comments as follows: + +I thought that others may want to know the current state of +CMAKE_USE_RELATIVE_PATHS support on Windows. + +Here it is: +-- AdditionalIncludeDirectories is only partially modified (only the +first path - see below) +-- Only some of the contained file paths are modified - shown below for +pcre.vcproj +-- It properly modifies + +I am sure CMake people can fix that if they want to. Until then one will +need to replace existing absolute paths in project files with relative +paths manually (e.g. from VS) - relative to project file location. I did +just that before being told to try CMAKE_USE_RELATIVE_PATHS. Not a big +deal. + +AdditionalIncludeDirectories="E:\builds\pcre\build;E:\builds\pcre\pcre-7.5;" +AdditionalIncludeDirectories=".;E:\builds\pcre\pcre-7.5;" + +RelativePath="pcre.h"> +RelativePath="pcre_chartables.c"> +RelativePath="pcre_chartables.c.rule"> + + +TESTING WITH RUNTEST.BAT 1. Copy RunTest.bat into the directory where pcretest.exe has been created. @@ -384,5 +428,5 @@ $! ========================= -Last Updated: 21 September 2007 +Last Updated: 25 January 2008 **** http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/README?r1=1.11.2.1.2.4&r2=1.11.2.1.2.5&diff_format=u Index: php-src/ext/pcre/pcrelib/README diff -u php-src/ext/pcre/pcrelib/README:1.11.2.1.2.4 php-src/ext/pcre/pcrelib/README:1.11.2.1.2.5 --- php-src/ext/pcre/pcrelib/README:1.11.2.1.2.4 Mon Jan 14 09:39:40 2008 +++ php-src/ext/pcre/pcrelib/README Tue Jan 29 20:25:47 2008 @@ -119,9 +119,9 @@ in the section entitled "Using HP's ANSI C++ compiler (aCC)" below. The following instructions assume the use of the widely used "configure, make, -make install" process. There is also some experimental support for "cmake" in -the PCRE distribution, but it is incomplete and not documented. However, if you -are a "cmake" user, you might want to try it. +make install" process. There is also support for CMake in the PCRE +distribution; there are some comments about using CMake in the NON-UNIX-USE +file, though it can also be used in Unix-like systems. To build PCRE on a Unix-like system, first run the "configure" command from the PCRE distribution directory, with your current directory set to the directory @@ -303,12 +303,12 @@ contains compiler output from tests that "configure" runs. Once "configure" has run, you can run "make". It builds two libraries, called -libpcre and libpcreposix, a test program called pcretest, a demonstration -program called pcredemo, and the pcregrep command. If a C++ compiler was found -on your system, "make" also builds the C++ wrapper library, which is called -libpcrecpp, and some test programs called pcrecpp_unittest, -pcre_scanner_unittest, and pcre_stringpiece_unittest. Building the C++ wrapper -can be disabled by adding --disable-cpp to the "configure" command. +libpcre and libpcreposix, a test program called pcretest, and the pcregrep +command. If a C++ compiler was found on your system, "make" also builds the C++ +wrapper library, which is called libpcrecpp, and some test programs called +pcrecpp_unittest, pcre_scanner_unittest, and pcre_stringpiece_unittest. +Building the C++ wrapper can be disabled by adding --disable-cpp to the +"configure" command. The command "make check" runs all the appropriate tests. Details of the PCRE tests are given below in a separate section of this document. @@ -360,9 +360,6 @@ pcretest.txt the pcretest man page pcregrep.txt the pcregrep man page -Note that the pcredemo program that is built by "configure" is *not* installed -anywhere. It is a demonstration for programmers wanting to use PCRE. - If you want to remove PCRE from your system, you can run "make uninstall". This removes all the files that "make install" installed. However, it does not remove any directories, because these are often shared with other programs. @@ -743,4 +740,4 @@ Philip Hazel Email local part: ph10 Email domain: cam.ac.uk -Last updated: 18 December 2007 +Last updated: 25 January 2008 http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/config.h?r1=1.2.2.5&r2=1.2.2.6&diff_format=u Index: php-src/ext/pcre/pcrelib/config.h diff -u php-src/ext/pcre/pcrelib/config.h:1.2.2.5 php-src/ext/pcre/pcrelib/config.h:1.2.2.6 --- php-src/ext/pcre/pcrelib/config.h:1.2.2.5 Mon Jan 14 09:39:40 2008 +++ php-src/ext/pcre/pcrelib/config.h Tue Jan 29 20:25:47 2008 @@ -251,13 +251,13 @@ #define PACKAGE_NAME "PCRE" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "PCRE 7.5" +#define PACKAGE_STRING "PCRE 7.6" /* 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.5" +#define PACKAGE_VERSION "7.6" /* If you are compiling for a system other than a Unix-like system or @@ -310,7 +310,7 @@ /* Version number of package */ #ifndef VERSION -#define VERSION "7.5" +#define VERSION "7.6" #endif /* Define to empty if `const' does not conform to ANSI C. */ http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/dftables.c?r1=1.10.2.1.2.6&r2=1.10.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/dftables.c diff -u php-src/ext/pcre/pcrelib/dftables.c:1.10.2.1.2.6 php-src/ext/pcre/pcrelib/dftables.c:1.10.2.1.2.7 --- php-src/ext/pcre/pcrelib/dftables.c:1.10.2.1.2.6 Mon Jan 14 09:39:40 2008 +++ php-src/ext/pcre/pcrelib/dftables.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre.h?r1=1.18.2.1.2.8&r2=1.18.2.1.2.9&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre.h diff -u php-src/ext/pcre/pcrelib/pcre.h:1.18.2.1.2.8 php-src/ext/pcre/pcrelib/pcre.h:1.18.2.1.2.9 --- php-src/ext/pcre/pcrelib/pcre.h:1.18.2.1.2.8 Mon Jan 14 09:39:40 2008 +++ php-src/ext/pcre/pcrelib/pcre.h Tue Jan 29 20:25:47 2008 @@ -5,7 +5,7 @@ /* This is the public header file for the PCRE library, to be #included by applications that call the PCRE functions. - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without @@ -42,9 +42,9 @@ /* The current PCRE version information. */ #define PCRE_MAJOR 7 -#define PCRE_MINOR 5 +#define PCRE_MINOR 6 #define PCRE_PRERELEASE -#define PCRE_DATE 2008-01-10 +#define PCRE_DATE 2008-01-28 /* 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 http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_compile.c?r1=1.1.2.1.2.7&r2=1.1.2.1.2.8&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_compile.c diff -u php-src/ext/pcre/pcrelib/pcre_compile.c:1.1.2.1.2.7 php-src/ext/pcre/pcrelib/pcre_compile.c:1.1.2.1.2.8 --- php-src/ext/pcre/pcrelib/pcre_compile.c:1.1.2.1.2.7 Mon Jan 14 09:39:40 2008 +++ php-src/ext/pcre/pcrelib/pcre_compile.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without @@ -2374,6 +2374,7 @@ BOOL class_utf8; BOOL utf8 = (options & PCRE_UTF8) != 0; uschar *class_utf8data; +uschar *class_utf8data_base; uschar utf8_char[6]; #else BOOL utf8 = FALSE; @@ -2685,6 +2686,7 @@ #ifdef SUPPORT_UTF8 class_utf8 = FALSE; /* No chars >= 256 */ class_utf8data = code + LINK_SIZE + 2; /* For UTF-8 items */ + class_utf8data_base = class_utf8data; /* For resetting in pass 1 */ #endif /* Process characters until ] is reached. By writing this as a "do" it @@ -2700,6 +2702,18 @@ { /* Braces are required because the */ GETCHARLEN(c, ptr, ptr); /* macro generates multiple statements */ } + + /* In the pre-compile phase, accumulate the length of any UTF-8 extra + data and reset the pointer. This is so that very large classes that + contain a zillion UTF-8 characters no longer overwrite the work space + (which is on the stack). */ + + if (lengthptr != NULL) + { + *lengthptr += class_utf8data - class_utf8data_base; + class_utf8data = class_utf8data_base; + } + #endif /* Inside \Q...\E everything is literal except \E */ @@ -5805,7 +5819,6 @@ uschar cworkspace[COMPILE_WORK_SIZE]; - /* Set this early so that early errors get offset 0. */ ptr = (const uschar *)pattern; http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_config.c?r1=1.1.2.1.2.6&r2=1.1.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_config.c diff -u php-src/ext/pcre/pcrelib/pcre_config.c:1.1.2.1.2.6 php-src/ext/pcre/pcrelib/pcre_config.c:1.1.2.1.2.7 --- php-src/ext/pcre/pcrelib/pcre_config.c:1.1.2.1.2.6 Mon Jan 14 09:39:40 2008 +++ php-src/ext/pcre/pcrelib/pcre_config.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_exec.c?r1=1.1.2.1.2.8&r2=1.1.2.1.2.9&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_exec.c diff -u php-src/ext/pcre/pcrelib/pcre_exec.c:1.1.2.1.2.8 php-src/ext/pcre/pcrelib/pcre_exec.c:1.1.2.1.2.9 --- php-src/ext/pcre/pcrelib/pcre_exec.c:1.1.2.1.2.8 Mon Jan 14 09:39:40 2008 +++ php-src/ext/pcre/pcrelib/pcre_exec.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_fullinfo.c?r1=1.1.2.1.2.6&r2=1.1.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_fullinfo.c diff -u php-src/ext/pcre/pcrelib/pcre_fullinfo.c:1.1.2.1.2.6 php-src/ext/pcre/pcrelib/pcre_fullinfo.c:1.1.2.1.2.7 --- php-src/ext/pcre/pcrelib/pcre_fullinfo.c:1.1.2.1.2.6 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_fullinfo.c Tue Jan 29 20:25:47 2008 @@ -2,11 +2,11 @@ * Perl-Compatible Regular Expressions * *************************************************/ -/*PCRE is a library of functions to support regular expressions whose syntax +/* PCRE is a library of functions to support regular expressions whose syntax and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_get.c?r1=1.1.2.1.2.7&r2=1.1.2.1.2.8&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_get.c diff -u php-src/ext/pcre/pcrelib/pcre_get.c:1.1.2.1.2.7 php-src/ext/pcre/pcrelib/pcre_get.c:1.1.2.1.2.8 --- php-src/ext/pcre/pcrelib/pcre_get.c:1.1.2.1.2.7 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_get.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_globals.c?r1=1.1.2.1.2.6&r2=1.1.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_globals.c diff -u php-src/ext/pcre/pcrelib/pcre_globals.c:1.1.2.1.2.6 php-src/ext/pcre/pcrelib/pcre_globals.c:1.1.2.1.2.7 --- php-src/ext/pcre/pcrelib/pcre_globals.c:1.1.2.1.2.6 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_globals.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_info.c?r1=1.1.2.1.2.6&r2=1.1.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_info.c diff -u php-src/ext/pcre/pcrelib/pcre_info.c:1.1.2.1.2.6 php-src/ext/pcre/pcrelib/pcre_info.c:1.1.2.1.2.7 --- php-src/ext/pcre/pcrelib/pcre_info.c:1.1.2.1.2.6 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_info.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_internal.h?r1=1.1.2.1.2.6&r2=1.1.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_internal.h diff -u php-src/ext/pcre/pcrelib/pcre_internal.h:1.1.2.1.2.6 php-src/ext/pcre/pcrelib/pcre_internal.h:1.1.2.1.2.7 --- php-src/ext/pcre/pcrelib/pcre_internal.h:1.1.2.1.2.6 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_internal.h Tue Jan 29 20:25:47 2008 @@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_maketables.c?r1=1.1.2.1.2.7&r2=1.1.2.1.2.8&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_maketables.c diff -u php-src/ext/pcre/pcrelib/pcre_maketables.c:1.1.2.1.2.7 php-src/ext/pcre/pcrelib/pcre_maketables.c:1.1.2.1.2.8 --- php-src/ext/pcre/pcrelib/pcre_maketables.c:1.1.2.1.2.7 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_maketables.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_newline.c?r1=1.1.2.5&r2=1.1.2.6&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_newline.c diff -u php-src/ext/pcre/pcrelib/pcre_newline.c:1.1.2.5 php-src/ext/pcre/pcrelib/pcre_newline.c:1.1.2.6 --- php-src/ext/pcre/pcrelib/pcre_newline.c:1.1.2.5 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_newline.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_ord2utf8.c?r1=1.1.2.1.2.6&r2=1.1.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_ord2utf8.c diff -u php-src/ext/pcre/pcrelib/pcre_ord2utf8.c:1.1.2.1.2.6 php-src/ext/pcre/pcrelib/pcre_ord2utf8.c:1.1.2.1.2.7 --- php-src/ext/pcre/pcrelib/pcre_ord2utf8.c:1.1.2.1.2.6 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_ord2utf8.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_printint.src?r1=1.1.2.2.2.5&r2=1.1.2.2.2.6&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_printint.src diff -u php-src/ext/pcre/pcrelib/pcre_printint.src:1.1.2.2.2.5 php-src/ext/pcre/pcrelib/pcre_printint.src:1.1.2.2.2.6 --- php-src/ext/pcre/pcrelib/pcre_printint.src:1.1.2.2.2.5 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_printint.src Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_refcount.c?r1=1.1.2.1.2.6&r2=1.1.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_refcount.c diff -u php-src/ext/pcre/pcrelib/pcre_refcount.c:1.1.2.1.2.6 php-src/ext/pcre/pcrelib/pcre_refcount.c:1.1.2.1.2.7 --- php-src/ext/pcre/pcrelib/pcre_refcount.c:1.1.2.1.2.6 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_refcount.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_study.c?r1=1.1.2.1.2.7&r2=1.1.2.1.2.8&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_study.c diff -u php-src/ext/pcre/pcrelib/pcre_study.c:1.1.2.1.2.7 php-src/ext/pcre/pcrelib/pcre_study.c:1.1.2.1.2.8 --- php-src/ext/pcre/pcrelib/pcre_study.c:1.1.2.1.2.7 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_study.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_tables.c?r1=1.1.2.1.2.6&r2=1.1.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_tables.c diff -u php-src/ext/pcre/pcrelib/pcre_tables.c:1.1.2.1.2.6 php-src/ext/pcre/pcrelib/pcre_tables.c:1.1.2.1.2.7 --- php-src/ext/pcre/pcrelib/pcre_tables.c:1.1.2.1.2.6 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_tables.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_try_flipped.c?r1=1.1.2.1.2.7&r2=1.1.2.1.2.8&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_try_flipped.c diff -u php-src/ext/pcre/pcrelib/pcre_try_flipped.c:1.1.2.1.2.7 php-src/ext/pcre/pcrelib/pcre_try_flipped.c:1.1.2.1.2.8 --- php-src/ext/pcre/pcrelib/pcre_try_flipped.c:1.1.2.1.2.7 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_try_flipped.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_ucp_searchfuncs.c?r1=1.1.2.2.2.7&r2=1.1.2.2.2.8&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_ucp_searchfuncs.c diff -u php-src/ext/pcre/pcrelib/pcre_ucp_searchfuncs.c:1.1.2.2.2.7 php-src/ext/pcre/pcrelib/pcre_ucp_searchfuncs.c:1.1.2.2.2.8 --- php-src/ext/pcre/pcrelib/pcre_ucp_searchfuncs.c:1.1.2.2.2.7 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_ucp_searchfuncs.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_valid_utf8.c?r1=1.1.2.1.2.6&r2=1.1.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_valid_utf8.c diff -u php-src/ext/pcre/pcrelib/pcre_valid_utf8.c:1.1.2.1.2.6 php-src/ext/pcre/pcrelib/pcre_valid_utf8.c:1.1.2.1.2.7 --- php-src/ext/pcre/pcrelib/pcre_valid_utf8.c:1.1.2.1.2.6 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_valid_utf8.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_version.c?r1=1.1.2.1.2.6&r2=1.1.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_version.c diff -u php-src/ext/pcre/pcrelib/pcre_version.c:1.1.2.1.2.6 php-src/ext/pcre/pcrelib/pcre_version.c:1.1.2.1.2.7 --- php-src/ext/pcre/pcrelib/pcre_version.c:1.1.2.1.2.6 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_version.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcre_xclass.c?r1=1.1.2.1.2.6&r2=1.1.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/pcre_xclass.c diff -u php-src/ext/pcre/pcrelib/pcre_xclass.c:1.1.2.1.2.6 php-src/ext/pcre/pcrelib/pcre_xclass.c:1.1.2.1.2.7 --- php-src/ext/pcre/pcrelib/pcre_xclass.c:1.1.2.1.2.6 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcre_xclass.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcredemo.c?r1=1.1.8.3&r2=1.1.8.4&diff_format=u Index: php-src/ext/pcre/pcrelib/pcredemo.c diff -u php-src/ext/pcre/pcrelib/pcredemo.c:1.1.8.3 php-src/ext/pcre/pcrelib/pcredemo.c:1.1.8.4 --- php-src/ext/pcre/pcrelib/pcredemo.c:1.1.8.3 Sat Sep 1 17:48:42 2007 +++ php-src/ext/pcre/pcrelib/pcredemo.c Tue Jan 29 20:25:47 2008 @@ -4,9 +4,11 @@ /* This is a demonstration program to illustrate the most straightforward ways of calling the PCRE regular expression library from a C program. See the -pcresample documentation for a short discussion. +pcresample documentation for a short discussion ("man pcresample" if you have +the PCRE man pages installed). + +In Unix-like environments, compile this program thuswise: -Compile thuswise: gcc -Wall pcredemo.c -I/usr/local/include -L/usr/local/lib \ -R/usr/local/lib -lpcre @@ -14,8 +16,15 @@ library files for PCRE are installed on your system. You don't need -I and -L if PCRE is installed in the standard system libraries. Only some operating systems (e.g. Solaris) use the -R option. -*/ +Building under Windows: + +If you want to statically link this program against a non-dll .a file, you must +define PCRE_STATIC before including pcre.h, otherwise the pcre_malloc() and +pcre_free() exported functions will be declared __declspec(dllimport), with +unwanted results. So in this environment, uncomment the following line. */ + +/* #define PCRE_STATIC */ #include <stdio.h> #include <string.h> @@ -129,8 +138,8 @@ /************************************************************************* * We have found the first match within the subject string. If the output * -* vector wasn't big enough, set its size to the maximum. Then output any * -* substrings that were captured. * +* vector wasn't big enough, say so. Then output any substrings that were * +* captured. * *************************************************************************/ /* The output vector wasn't big enough */ @@ -155,7 +164,7 @@ /************************************************************************** * That concludes the basic part of this demonstration program. We have * * compiled a pattern, and performed a single match. The code that follows * -* first shows how to access named substrings, and then how to code for * +* shows first how to access named substrings, and then how to code for * * repeated matches on the same subject. * **************************************************************************/ http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcregrep.c?r1=1.8.2.1.2.10&r2=1.8.2.1.2.11&diff_format=u Index: php-src/ext/pcre/pcrelib/pcregrep.c diff -u php-src/ext/pcre/pcrelib/pcregrep.c:1.8.2.1.2.10 php-src/ext/pcre/pcrelib/pcregrep.c:1.8.2.1.2.11 --- php-src/ext/pcre/pcrelib/pcregrep.c:1.8.2.1.2.10 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcregrep.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ its pattern matching. On a Unix or Win32 system it can recurse into directories. - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcreposix.c?r1=1.15.2.1.2.8&r2=1.15.2.1.2.9&diff_format=u Index: php-src/ext/pcre/pcrelib/pcreposix.c diff -u php-src/ext/pcre/pcrelib/pcreposix.c:1.15.2.1.2.8 php-src/ext/pcre/pcrelib/pcreposix.c:1.15.2.1.2.9 --- php-src/ext/pcre/pcrelib/pcreposix.c:1.15.2.1.2.8 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/pcreposix.c Tue Jan 29 20:25:47 2008 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/pcreposix.h?r1=1.9.2.1.2.4&r2=1.9.2.1.2.5&diff_format=u Index: php-src/ext/pcre/pcrelib/pcreposix.h diff -u php-src/ext/pcre/pcrelib/pcreposix.h:1.9.2.1.2.4 php-src/ext/pcre/pcrelib/pcreposix.h:1.9.2.1.2.5 --- php-src/ext/pcre/pcrelib/pcreposix.h:1.9.2.1.2.4 Sat Sep 1 17:48:43 2007 +++ php-src/ext/pcre/pcrelib/pcreposix.h Tue Jan 29 20:25:47 2008 @@ -9,7 +9,7 @@ Compatible Regular Expression library. It defines the things POSIX says should be there. I hope. - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2008 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/doc/pcre.txt?r1=1.9.2.1.2.6&r2=1.9.2.1.2.7&diff_format=u Index: php-src/ext/pcre/pcrelib/doc/pcre.txt diff -u php-src/ext/pcre/pcrelib/doc/pcre.txt:1.9.2.1.2.6 php-src/ext/pcre/pcrelib/doc/pcre.txt:1.9.2.1.2.7 --- php-src/ext/pcre/pcrelib/doc/pcre.txt:1.9.2.1.2.6 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/doc/pcre.txt Tue Jan 29 20:25:47 2008 @@ -869,7 +869,7 @@ a Perl-compatible manner. A sample program that demonstrates the sim- plest way of using them is provided in the file called pcredemo.c in the source distribution. The pcresample documentation describes how to - run it. + compile and run it. A second matching function, pcre_dfa_exec(), which is not Perl-compati- ble, is also provided. This uses a different algorithm for the match- @@ -2565,8 +2565,8 @@ REVISION - Last updated: 26 December 2007 - Copyright (c) 1997-2007 University of Cambridge. + Last updated: 23 January 2008 + Copyright (c) 1997-2008 University of Cambridge. ------------------------------------------------------------------------------ @@ -6321,29 +6321,28 @@ bility of matching an empty string. Comments in the code explain what is going on. - The demonstration program is automatically built if you use "./config- - ure;make" to build PCRE. Otherwise, if PCRE is installed in the stan- - dard include and library directories for your system, you should be - able to compile the demonstration program using this command: + If PCRE is installed in the standard include and library directories + for your system, you should be able to compile the demonstration pro- + gram using this command: gcc -o pcredemo pcredemo.c -lpcre - If PCRE is installed elsewhere, you may need to add additional options - to the command line. For example, on a Unix-like system that has PCRE - installed in /usr/local, you can compile the demonstration program + If PCRE is installed elsewhere, you may need to add additional options + to the command line. For example, on a Unix-like system that has PCRE + installed in /usr/local, you can compile the demonstration program using a command like this: gcc -o pcredemo -I/usr/local/include pcredemo.c \ -L/usr/local/lib -lpcre - Once you have compiled the demonstration program, you can run simple + Once you have compiled the demonstration program, you can run simple tests like this: ./pcredemo 'cat|dog' 'the cat sat on the mat' ./pcredemo -g 'cat|dog' 'the dog sat on the cat' - Note that there is a much more comprehensive test program, called - pcretest, which supports many more facilities for testing regular + Note that there is a much more comprehensive test program, called + pcretest, which supports many more facilities for testing regular expressions and the PCRE library. The pcredemo program is provided as a simple coding example. @@ -6351,10 +6350,10 @@ the standard library directory, you may get an error like this when you try to run pcredemo: - ld.so.1: a.out: fatal: libpcre.so.0: open failed: No such file or + ld.so.1: a.out: fatal: libpcre.so.0: open failed: No such file or directory - This is caused by the way shared library support works on those sys- + This is caused by the way shared library support works on those sys- tems. You need to add -R/usr/local/lib @@ -6371,8 +6370,8 @@ REVISION - Last updated: 13 June 2007 - Copyright (c) 1997-2007 University of Cambridge. + Last updated: 23 January 2008 + Copyright (c) 1997-2008 University of Cambridge. ------------------------------------------------------------------------------ PCRESTACK(3) PCRESTACK(3) http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/testdata/testinput4?r1=1.4.2.1.2.4&r2=1.4.2.1.2.5&diff_format=u Index: php-src/ext/pcre/pcrelib/testdata/testinput4 diff -u php-src/ext/pcre/pcrelib/testdata/testinput4:1.4.2.1.2.4 php-src/ext/pcre/pcrelib/testdata/testinput4:1.4.2.1.2.5 --- php-src/ext/pcre/pcrelib/testdata/testinput4:1.4.2.1.2.4 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/testdata/testinput4 Tue Jan 29 20:25:47 2008 @@ -607,4 +607,6 @@ /[[:^xdigit:]]/8g M\x{442} +/[^ABCDEFGHIJKLMNOPQRSTUVWXYZÃÃÃÃÃà ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Ä¢Ä¤Ä¦Ä¨ÄªÄ¬Ä®Ä°Ä²Ä´Ä¶Ä¹Ä»Ä½Ä¿ÅÅÅ ÅÅÅÅÅÅÅÅÅÅÅÅŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆ Æ¢Æ¤Æ¦Æ§Æ©Æ¬Æ®Æ¯Æ±Æ²Æ³ÆµÆ·Æ¸Æ¼ÇÇÇÇÇÇÇÇÇÇÇÇÇ Ç¢Ç¤Ç¦Ç¨ÇªÇ¬Ç®Ç±Ç´Ç¶Ç·Ç¸ÇºÇ¼Ç¾ÈÈÈÈÈÈÈÈÈÈÈÈÈÈÈÈÈ È¢È¤È¦È¨ÈªÈ¬È®È°È²ÈºÈ»È½È¾ÉÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎΠΡΣΤΥΦΧΨΩΪΫÏÏÏÏÏÏÏÏ Ï¢Ï¤Ï¦Ï¨ÏªÏ¬Ï®Ï´Ï·Ï¹ÏºÏ½Ï¾Ï¿ÐÐÐÐÐÐ ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐРСТУФХЦЧШЩЪЫЬÐÐ®Ð¯Ñ Ñ¢Ñ¤Ñ¦Ñ¨ÑªÑ¬Ñ®Ñ°Ñ²Ñ´Ñ¶Ñ¸ÑºÑ¼Ñ¾ÒÒÒÒÒÒÒÒÒÒÒÒÒ Ò¢Ò¤Ò¦Ò¨ÒªÒ¬Ò®Ò°Ò²Ò´Ò¶Ò¸ÒºÒ¼Ò¾ÓÓÓÓ ÓÓÓÓÓÓÓÓÓÓÓÓÓ Ó¢Ó¤Ó¦Ó¨ÓªÓ¬Ó®Ó°Ó²Ó´Ó¶Ó¸ÔÔÔÔÔÔÔÔÔ±Ô²Ô³Ô´ÔµÔ¶Ô·Ô¸Ô¹ÔºÔ»Ô¼Ô½Ô¾Ô¿ÕÕÕÕÕÕ ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕá á¡á¢á£á¤á¥á¦á§á¨á©áªá«á¬áá®á¯á°á±á²á³á´áµá¶á·á¸á¹áºá»á¼á½á¾á¿áááááá á¸á¸á¸á¸á¸á¸á¸á¸á! ¸á¸á¸á¸á¸á¸á¸á¸á¸ ḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾá¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹ ṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾáºáºáºáºáºáºáºáºáºáºáºáº ẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾá»á»á»á»á»á»á»á»á»á»á»á»á»á»á»á»á» ỢỤỦỨỪỬỮỰỲỴỶỸá¼á¼á¼á¼á¼á¼á¼á¼á¼á¼á¼á¼á¼á¼á¼¨á¼©á¼ªá¼«á¼¬á¼á¼®á¼¯á¼¸á¼¹á¼ºá¼»á¼¼á¼½á¼¾á¼¿á½á½á½á½á½á½á½á½á½á½á½¨á½©á½ªá½«á½¬á½á½®á½¯á¾¸á¾¹á¾ºá¾»á¿á¿á¿á¿á¿á¿á¿á¿á¿¨á¿©á¿ªá¿«á¿¬á¿¸á¿¹á¿ºá¿»abcdefghijklmnopqrstuvwxyzªµºÃà áâãäåæçèéêëìÃîïðñòóôõöøùúûüýþÿÄÄÄ ÄÄÄÄÄÄÄÄÄÄÄÄÄġģĥħĩīÄįıijĵķĸĺļľÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅšţťŧũūÅůűųŵŷźżžſÆÆÆ ÆÆÆÆÆÆÆÆÆơƣƥƨƪƫÆưƴƶƹƺƽƾƿÇÇÇÇÇÇÇÇÇÇÇÇÇǡǣǥǧǩǫÇǯǰdzǵǹǻǽǿÈÈÈ ÈÈÈÈÈÈÈÈÈÈÈÈÈȡȣȥȧȩȫÈȯȱȳȴȵȶȷȸȹȼȿÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉ É¡É¢É£! ɤɥɦɧɨɩɪɫɬÉɮɯɰɱɲɳɴɵɶɷɸɹɺɻɼɽɾɿÊÊÊÊÊÊ Ê ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ Ê¡Ê¢Ê£Ê¤Ê¥Ê¦Ê§Ê¨Ê©ÊªÊ«Ê¬ÊʮʯÎάÎήίΰαβγδεζηθικλμνξοÏÏÏÏÏÏ ÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏϡϣϥϧϩϫÏϯϰϱϲϳϵϸϻϼабвгдежзийклмнопÑÑÑÑÑÑ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑѡѣѥѧѩѫÑѯѱѳѵѷѹѻѽѿÒÒÒÒÒÒÒÒÒÒÒÒÒ¡Ò£Ò¥Ò§Ò©Ò«ÒÒ¯Ò±Ò³ÒµÒ·Ò¹Ò»Ò½Ò¿ÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓ¡Ó£Ó¥Ó§Ó©Ó«ÓÓ¯Ó±Ó³ÓµÓ·Ó¹ÔÔÔ ÔÔÔÔÔÕ¡Õ¢Õ£Õ¤Õ¥Õ¦Õ§Õ¨Õ©ÕªÕ«Õ¬ÕÕ®Õ¯Õ°Õ±Õ²Õ³Õ´ÕµÕ¶Õ·Õ¸Õ¹ÕºÕ»Õ¼Õ½Õ¾Õ¿ÖÖÖÖÖÖ ÖÖá´á´á´á´á´á´ á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´ ᴡᴢᴣᴤᴥᴦᴧᴨᴩᴪᴫᵢᵣᵤᵥᵦᵧᵨᵩᵪᵫᵬáµáµ®áµ¯áµ°áµ±áµ²áµ³áµ´áµµáµ¶áµ·áµ¹áµºáµ»áµ¼áµ½áµ¾áµ¿á¶á¶á¶á¶á¶á¶ á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¸á¸á¸ á¸á¸á¸á¸á¸á¸á¸á¸á¸á¸á¸á¸á¸á¸¡á¸£á¸¥á¸§á¸©á¸«á¸á¸¯á¸±á¸³á¸µá¸·á¸¹á¸»á¸½á¸¿á¹á¹á¹ á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹¡á¹£á! ¹¥á¹§á¹©á¹«á¹á¹¯á¹±á¹³á¹µá¹·á¹¹á¹»á¹½á¹¿áºáºáº áºáºáºáºáºáºáºáºáºáºáºáºáºáºáº¡áº£áº¥áº§áº©áº«áºáº¯áº±áº³áºµáº·áº¹áº»áº½áº¿á»á»á» á»á»á»á»á»á»á»á»á»á»á»á»á»á»¡á»£á»¥á»§á»©á»«á»á»¯á»±á»³á»µá»·á»¹á¼á¼á¼á¼á¼á¼ á¼á¼á¼á¼á¼á¼á¼á¼á¼ ἡἢἣἤἥἦἧἰἱἲἳἴἵἶἷá½á½á½á½á½á½ á½á½á½á½á½á½á½á½á½ ὡὢὣὤὥὦὧὰάὲέὴήὶίὸόὺύὼώá¾á¾á¾á¾á¾á¾ á¾á¾á¾á¾á¾á¾á¾á¾á¾á¾á¾ ᾡᾢᾣᾤᾥᾦᾧᾰᾱᾲᾳᾴᾶᾷιá¿á¿á¿á¿á¿á¿á¿á¿á¿á¿á¿á¿ ῡῢΰῤῥῦῧῲῳῴῶῷâ²â²â² â²â²â²â²â²â²â²â²â²â²â²â²â²â²¡â²£â²¥â²§â²©â²«â²â²¯â²±â²³â²µâ²·â²¹â²»â²½â²¿â³â³â³ â³â³â³â³â³â³â³â³â³â³â³â³â³â³¡â³£â³¤â´â´â´â´â´â´ â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´ ⴡⴢⴣⴤⴥï¬ï¬ï¬ï¬ï¬ï¬ ï¬ï¬ï¬ï¬ï¬ï¬\d-_^]/8 + / End of testinput4 / http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/pcrelib/testdata/testoutput4?r1=1.6.2.1.2.4&r2=1.6.2.1.2.5&diff_format=u Index: php-src/ext/pcre/pcrelib/testdata/testoutput4 diff -u php-src/ext/pcre/pcrelib/testdata/testoutput4:1.6.2.1.2.4 php-src/ext/pcre/pcrelib/testdata/testoutput4:1.6.2.1.2.5 --- php-src/ext/pcre/pcrelib/testdata/testoutput4:1.6.2.1.2.4 Mon Jan 14 09:39:41 2008 +++ php-src/ext/pcre/pcrelib/testdata/testoutput4 Tue Jan 29 20:25:47 2008 @@ -1069,4 +1069,6 @@ 0: M 0: \x{442} +/[^ABCDEFGHIJKLMNOPQRSTUVWXYZÃÃÃÃÃà ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Ä¢Ä¤Ä¦Ä¨ÄªÄ¬Ä®Ä°Ä²Ä´Ä¶Ä¹Ä»Ä½Ä¿ÅÅÅ ÅÅÅÅÅÅÅÅÅÅÅÅŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆ Æ¢Æ¤Æ¦Æ§Æ©Æ¬Æ®Æ¯Æ±Æ²Æ³ÆµÆ·Æ¸Æ¼ÇÇÇÇÇÇÇÇÇÇÇÇÇ Ç¢Ç¤Ç¦Ç¨ÇªÇ¬Ç®Ç±Ç´Ç¶Ç·Ç¸ÇºÇ¼Ç¾ÈÈÈÈÈÈÈÈÈÈÈÈÈÈÈÈÈ È¢È¤È¦È¨ÈªÈ¬È®È°È²ÈºÈ»È½È¾ÉÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎΠΡΣΤΥΦΧΨΩΪΫÏÏÏÏÏÏÏÏ Ï¢Ï¤Ï¦Ï¨ÏªÏ¬Ï®Ï´Ï·Ï¹ÏºÏ½Ï¾Ï¿ÐÐÐÐÐÐ ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐРСТУФХЦЧШЩЪЫЬÐÐ®Ð¯Ñ Ñ¢Ñ¤Ñ¦Ñ¨ÑªÑ¬Ñ®Ñ°Ñ²Ñ´Ñ¶Ñ¸ÑºÑ¼Ñ¾ÒÒÒÒÒÒÒÒÒÒÒÒÒ Ò¢Ò¤Ò¦Ò¨ÒªÒ¬Ò®Ò°Ò²Ò´Ò¶Ò¸ÒºÒ¼Ò¾ÓÓÓÓ ÓÓÓÓÓÓÓÓÓÓÓÓÓ Ó¢Ó¤Ó¦Ó¨ÓªÓ¬Ó®Ó°Ó²Ó´Ó¶Ó¸ÔÔÔÔÔÔÔÔÔ±Ô²Ô³Ô´ÔµÔ¶Ô·Ô¸Ô¹ÔºÔ»Ô¼Ô½Ô¾Ô¿ÕÕÕÕÕÕ ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕá á¡á¢á£á¤á¥á¦á§á¨á©áªá«á¬áá®á¯á°á±á²á³á´áµá¶á·á¸á¹áºá»á¼á½á¾á¿áááááá á¸á¸á¸á¸á¸á¸á¸á¸á! ¸á¸á¸á¸á¸á¸á¸á¸á¸ ḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾá¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹ ṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾáºáºáºáºáºáºáºáºáºáºáºáº ẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾá»á»á»á»á»á»á»á»á»á»á»á»á»á»á»á»á» ỢỤỦỨỪỬỮỰỲỴỶỸá¼á¼á¼á¼á¼á¼á¼á¼á¼á¼á¼á¼á¼á¼á¼¨á¼©á¼ªá¼«á¼¬á¼á¼®á¼¯á¼¸á¼¹á¼ºá¼»á¼¼á¼½á¼¾á¼¿á½á½á½á½á½á½á½á½á½á½á½¨á½©á½ªá½«á½¬á½á½®á½¯á¾¸á¾¹á¾ºá¾»á¿á¿á¿á¿á¿á¿á¿á¿á¿¨á¿©á¿ªá¿«á¿¬á¿¸á¿¹á¿ºá¿»abcdefghijklmnopqrstuvwxyzªµºÃà áâãäåæçèéêëìÃîïðñòóôõöøùúûüýþÿÄÄÄ ÄÄÄÄÄÄÄÄÄÄÄÄÄġģĥħĩīÄįıijĵķĸĺļľÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅšţťŧũūÅůűųŵŷźżžſÆÆÆ ÆÆÆÆÆÆÆÆÆơƣƥƨƪƫÆưƴƶƹƺƽƾƿÇÇÇÇÇÇÇÇÇÇÇÇÇǡǣǥǧǩǫÇǯǰdzǵǹǻǽǿÈÈÈ ÈÈÈÈÈÈÈÈÈÈÈÈÈȡȣȥȧȩȫÈȯȱȳȴȵȶȷȸȹȼȿÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉ É¡É¢É£! ɤɥɦɧɨɩɪɫɬÉɮɯɰɱɲɳɴɵɶɷɸɹɺɻɼɽɾɿÊÊÊÊÊÊ Ê ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ Ê¡Ê¢Ê£Ê¤Ê¥Ê¦Ê§Ê¨Ê©ÊªÊ«Ê¬ÊʮʯÎάÎήίΰαβγδεζηθικλμνξοÏÏÏÏÏÏ ÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏϡϣϥϧϩϫÏϯϰϱϲϳϵϸϻϼабвгдежзийклмнопÑÑÑÑÑÑ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑѡѣѥѧѩѫÑѯѱѳѵѷѹѻѽѿÒÒÒÒÒÒÒÒÒÒÒÒÒ¡Ò£Ò¥Ò§Ò©Ò«ÒÒ¯Ò±Ò³ÒµÒ·Ò¹Ò»Ò½Ò¿ÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓ¡Ó£Ó¥Ó§Ó©Ó«ÓÓ¯Ó±Ó³ÓµÓ·Ó¹ÔÔÔ ÔÔÔÔÔÕ¡Õ¢Õ£Õ¤Õ¥Õ¦Õ§Õ¨Õ©ÕªÕ«Õ¬ÕÕ®Õ¯Õ°Õ±Õ²Õ³Õ´ÕµÕ¶Õ·Õ¸Õ¹ÕºÕ»Õ¼Õ½Õ¾Õ¿ÖÖÖÖÖÖ ÖÖá´á´á´á´á´á´ á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´á´ ᴡᴢᴣᴤᴥᴦᴧᴨᴩᴪᴫᵢᵣᵤᵥᵦᵧᵨᵩᵪᵫᵬáµáµ®áµ¯áµ°áµ±áµ²áµ³áµ´áµµáµ¶áµ·áµ¹áµºáµ»áµ¼áµ½áµ¾áµ¿á¶á¶á¶á¶á¶á¶ á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¶á¸á¸á¸ á¸á¸á¸á¸á¸á¸á¸á¸á¸á¸á¸á¸á¸á¸¡á¸£á¸¥á¸§á¸©á¸«á¸á¸¯á¸±á¸³á¸µá¸·á¸¹á¸»á¸½á¸¿á¹á¹á¹ á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹á¹¡á¹£á! ¹¥á¹§á¹©á¹«á¹á¹¯á¹±á¹³á¹µá¹·á¹¹á¹»á¹½á¹¿áºáºáº áºáºáºáºáºáºáºáºáºáºáºáºáºáºáº¡áº£áº¥áº§áº©áº«áºáº¯áº±áº³áºµáº·áº¹áº»áº½áº¿á»á»á» á»á»á»á»á»á»á»á»á»á»á»á»á»á»¡á»£á»¥á»§á»©á»«á»á»¯á»±á»³á»µá»·á»¹á¼á¼á¼á¼á¼á¼ á¼á¼á¼á¼á¼á¼á¼á¼á¼ ἡἢἣἤἥἦἧἰἱἲἳἴἵἶἷá½á½á½á½á½á½ á½á½á½á½á½á½á½á½á½ ὡὢὣὤὥὦὧὰάὲέὴήὶίὸόὺύὼώá¾á¾á¾á¾á¾á¾ á¾á¾á¾á¾á¾á¾á¾á¾á¾á¾á¾ ᾡᾢᾣᾤᾥᾦᾧᾰᾱᾲᾳᾴᾶᾷιá¿á¿á¿á¿á¿á¿á¿á¿á¿á¿á¿á¿ ῡῢΰῤῥῦῧῲῳῴῶῷâ²â²â² â²â²â²â²â²â²â²â²â²â²â²â²â²â²¡â²£â²¥â²§â²©â²«â²â²¯â²±â²³â²µâ²·â²¹â²»â²½â²¿â³â³â³ â³â³â³â³â³â³â³â³â³â³â³â³â³â³¡â³£â³¤â´â´â´â´â´â´ â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´â´ ⴡⴢⴣⴤⴥï¬ï¬ï¬ï¬ï¬ï¬ ï¬ï¬ï¬ï¬ï¬ï¬\d-_^]/8 + / End of testinput4 /
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php