summaryrefslogtreecommitdiff
path: root/ext/pcre
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | Remove unstable test outputNikita Popov2019-09-181-2/+0
| | | | | | | | | | | | | | | | | | | | This may be printed in a different order, and we don't care about it anyway.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-09-182-1/+47
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-09-182-1/+47
| |\ \ \ | | |/ /
| | * | Fixed bug #78272Nikita Popov2019-09-182-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use MAP_JIT only when running under hardened runtime, because MAP_JIT is incompatible with fork(). The check is based on https://github.com/mono/mono/commit/f879e35e3ed7496d819bd766deb8be6992d068ed.
| | * | Backport MAP_JIT fixes from PCRE2 10.33Nikita Popov2019-09-181-3/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is intended to fix the primary issue from bug #77260. Prior to macOS 10.14 multiple MAP_JIT segments were not permitted, leading to mmap failures and corresponding "no more memory" errors on macOS 10.13.
* | | | Merge branch 'PHP-7.4'Stanislav Malyshev2019-08-251-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Fix test
| * | | Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2019-08-251-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.3: Fix test
| | * | Fix testStanislav Malyshev2019-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | Not sure why offset changed... probably different PCRE version calculates them in different way.
* | | | Merge branch 'PHP-7.4'Stanislav Malyshev2019-08-251-0/+10
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Fix #75457: heap-use-after-free in php7.0.25
| * | | Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2019-08-251-0/+10
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.3: Fix #75457: heap-use-after-free in php7.0.25
| | * | Merge branch 'PHP-7.2' into PHP-7.3Stanislav Malyshev2019-08-251-0/+10
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.2: Fix #75457: heap-use-after-free in php7.0.25
| | | * Merge branch 'PHP-7.1' into PHP-7.2Stanislav Malyshev2019-08-251-0/+10
| | | |\ | | | | | | | | | | | | | | | | | | | | * PHP-7.1: Fix #75457: heap-use-after-free in php7.0.25
| | | | * Fix #75457: heap-use-after-free in php7.0.25Christoph M. Becker2019-08-252-1/+20
| | | | | | | | | | | | | | | | | | | | Backport <https://vcs.pcre.org/pcre?view=revision&revision=1638>.
| | | | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1526-33/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| | | | * Trim trailing whitespace in *.phptPeter Kokot2018-10-1430-50/+50
| | | | |
| | | | * Sync leading and final newlines in source code filesPeter Kokot2018-10-142-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| | | | * Trim trailing whitespace in source code filesPeter Kokot2018-10-132-3/+3
| | | | |
| | | | * Convert CRLF line endings to LFPeter Kokot2018-10-132-69/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch simplifies line endings tracked in the Git repository and syncs them to all include the LF style instead of the CRLF files. Newline characters: - LF (\n) (*nix and Mac) - CRLF (\r\n) (Windows) - CR (\r) (old Mac, obsolete) To see which line endings are in the index and in the working copy the following command can be used: `git ls-files --eol` Git additionally provides `.gitattributes` file to specify if some files need to have specific line endings on all platforms (either CRLF or LF). Changed files shouldn't cause issues on modern Windows platforms because also Git can do output conversion is core.autocrlf=true is set on Windows and use CRLF newlines in all files in the working tree. Unless CRLF files are tracked specifically, Git by default tracks all files in the index using LF newlines.
| | | | * year++Xinchen Hui2018-01-022-2/+2
| | | | |
* | | | | Merge branch 'PHP-7.4'Remi Collet2019-08-201-0/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.4: ensure proper settings for test Update NEWS for 7.4.0RC1 Update NEWS for PHP 7.4.0beta4
| * | | | Merge branch 'PHP-7.3' into PHP-7.4Remi Collet2019-08-201-0/+2
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * PHP-7.3: ensure proper settings for test
| | * | | ensure proper settings for testRemi Collet2019-08-201-0/+2
| | | | |
* | | | | Merge branch 'PHP-7.4'Nikita Popov2019-08-131-0/+1
|\ \ \ \ \ | |/ / / /
| * | | | Mark PCRE locale key as local persistentNikita Popov2019-08-131-0/+1
| | | | |
* | | | | Use TypeError for preg_replace type checkNikita Popov2019-08-115-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | This is a type violation warning, and as such should use TypeError in PHP 8.
* | | | | Add stubs for PCRE extensionStephen Reay2019-08-113-64/+112
| | | | | | | | | | | | | | | | | | | | Closes GH-4501.
* | | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-08-011-133/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Remove upgrade-pcre.php script
| * | | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-08-011-133/+0
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * PHP-7.3: Remove upgrade-pcre.php script
| | * | | Remove upgrade-pcre.php scriptChristoph M. Becker2019-08-011-137/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This script has not been updated for PCRE2, and it's mostly useless anyway. Therefore we remove it altogether.
* | | | | Merge branch 'PHP-7.4'Stanislav Malyshev2019-07-292-1/+11
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Fix #78338: Array cross-border reading in PCRE
| * | | | Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2019-07-292-1/+11
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * PHP-7.3: Fix #78338: Array cross-border reading in PCRE
| | * | | Fix #78338: Array cross-border reading in PCREChristoph M. Becker2019-07-292-1/+11
| | | | | | | | | | | | | | | | | | | | We backport r1092 from pcre2.
| | * | | Fix bug #78197: PCRE2 version checkPeter Kokot2019-07-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | When external PCRE library version is of format ##.##-RC# the check failed.
* | | | | Merge branch 'PHP-7.4'Peter Kokot2019-07-215-5/+5
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Fix typos
| * | | | Fix typosMarkus Staab2019-07-215-5/+5
| | | | | | | | | | | | | | | | | | | | Closes GH-4447
* | | | | Ref #77388: Don't pass BAD_ESCAPE_IS_LITERALSjon Hortensius2019-07-182-23/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This option is considered dangerous and unwanted. To allow for more graceful migration don't error on now ignored X modifier. Closes GH-4430.
* | | | | Merge branch 'PHP-7.4'Dmitry Stogov2019-07-041-2/+11
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Split destructor
| * | | | Split destructorDmitry Stogov2019-07-041-2/+11
| | | | |
* | | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-281-0/+4
|\ \ \ \ \ | |/ / / /
| * | | | Set up asan+ubsan scheduled build on azureNikita Popov2019-06-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also adds an --asan flag to run-tests.php to setup all the necessary environment variables. Some tests are marked as skipped because they are incompatible with asan or too slow. I'm basing this on the DEBUG_ZTS build, which seems to give us the most mileage.
* | | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-171-1/+1
|\ \ \ \ \ | |/ / / /
| * | | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-06-171-1/+1
| |\ \ \ \ | | |/ / /
| | * | | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-06-171-1/+1
| | |\ \ \ | | | |/ /
| | | * | Accept null for preg_quote delimiter argumentNikita Popov2019-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | Related to bug #78163.
* | | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-111-20/+13
|\ \ \ \ \ | |/ / / /
| * | | | Add specialized pair construction APINikita Popov2019-06-111-20/+13
| | | | | | | | | | | | | | | | | | | | Closes GH-3990.
* | | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-053-6/+18
|\ \ \ \ \ | |/ / / /
| * | | | Allow exceptions in __toString()Nikita Popov2019-06-053-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
* | | | | Merge branch 'PHP-7.4'Dmitry Stogov2019-05-271-1/+4
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Enable pcre valgrind support only in DEBUG build (it affects performance)
| * | | | Enable pcre valgrind support only in DEBUG build (it affects performance)Dmitry Stogov2019-05-271-1/+4
| | | | |