Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unused Git attributes ident | Peter Kokot | 2018-07-25 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore. | ||||
* | Removed redundand code | Dmitry Stogov | 2018-07-19 | 1 | -21/+0 |
| | |||||
* | Matching loops optimization | Dmitry Stogov | 2018-07-19 | 1 | -156/+233 |
| | |||||
* | Micro optimizations | Dmitry Stogov | 2018-07-19 | 1 | -28/+36 |
| | |||||
* | Reorder conditions | Dmitry Stogov | 2018-07-18 | 1 | -44/+66 |
| | |||||
* | Move "/e" modifier check into regex compiler | Dmitry Stogov | 2018-07-18 | 1 | -10/+12 |
| | |||||
* | Merge "no_utf_check" and "g_notempty" into single "options". | Dmitry Stogov | 2018-07-18 | 1 | -65/+52 |
| | |||||
* | Mark conditions unexpected | Anatol Belski | 2018-07-11 | 1 | -2/+2 |
| | |||||
* | Reduce error buffer size | Anatol Belski | 2018-07-05 | 1 | -1/+1 |
| | | | | 120 bytes is ample, the doc says. | ||||
* | Check return value of pcre2_maketables() | Anatol Belski | 2018-06-29 | 1 | -0/+7 |
| | |||||
* | If there's no setlocale, char tables are not used | Anatol Belski | 2018-06-22 | 1 | -0/+2 |
| | |||||
* | Don't discard char tables just generated | Anatol Belski | 2018-06-22 | 1 | -10/+1 |
| | |||||
* | Improve locale character tables handling and reduce pattern cache size | Anatol Belski | 2018-06-22 | 1 | -15/+26 |
| | | | | | | | | | | | | If a locale other than C is active, character tables are saved into the compile context. Every compiled pattern will have a pointer to the character table, that was present in the context at the time of the pattern compilation. Thus, the cache entries don't need to carry char tables pointer, which reduces their size to 8 bytes on 64-bit. Instead, the generated character tables are tracked in a separate HashTable. If a character table was generated before, it'll be assigned to the compile context when the locale changes. Otherwise a new char table will be generated and cached. | ||||
* | Fixed bug #76514 Regression in preg_match makes it fail with ↵ | Anatol Belski | 2018-06-22 | 1 | -1/+1 |
| | | | | | | | PREG_JIT_STACKLIMIT_ERROR Looks like some patterns might require more stack for JIT execution. It is a regression, as the same pattern was passing using JIT. | ||||
* | Fix #76512: \w no longer includes unicode characters | Christoph M. Becker | 2018-06-21 | 1 | -2/+2 |
| | | | | | | | | The migration from PCRE to PCRE2 missed to rename once occurrence of `PCRE_UCP` to `PCRE2_UCP`. We fix that. We also revert the changes to bug52971.phpt which had been incorrectly made in commit a5bc5ae[1]. [1] <http://git.php.net/?p=php-src.git;a=commit;h=a5bc5aed71f7a15f14f33bb31b8e17bf5f327e2d> | ||||
* | Use zend_string_release_ex() instread of zend_string_release() in places, ↵ | Dmitry Stogov | 2018-05-28 | 1 | -23/+23 |
| | | | | where we sure about string persistence. | ||||
* | Reduce var scope | Anatol Belski | 2018-02-17 | 1 | -1/+2 |
| | |||||
* | year++ | Xinchen Hui | 2018-01-02 | 1 | -1/+1 |
| | |||||
* | Use zend_hash_find() instead of zend_hash_find_ptr() to avoid double check | Dmitry Stogov | 2017-12-27 | 1 | -8/+6 |
| | |||||
* | Fixed bug #75355: preg_quote() does not quote # control character | Michael Moravec | 2017-12-16 | 1 | -0/+2 |
| | |||||
* | Merge branch 'PHP-7.2' | Anatol Belski | 2017-12-05 | 1 | -1/+1 |
|\ | | | | | | | | | * PHP-7.2: Fix use after free revealed by phpdbg | ||||
| * | Merge branch 'PHP-7.1' into PHP-7.2 | Anatol Belski | 2017-12-05 | 1 | -1/+1 |
| |\ | | | | | | | | | | | | | * PHP-7.1: Fix use after free revealed by phpdbg | ||||
| | * | Fix use after free revealed by phpdbg | Anatol Belski | 2017-12-05 | 1 | -1/+1 |
| | | | |||||
| | * | Fixed bug #75601 Thread race in PCRE JIT support | Anatol Belski | 2017-12-05 | 1 | -0/+18 |
| | | | |||||
| * | | Fixed bug #75601 Thread race in PCRE JIT support | Anatol Belski | 2017-12-05 | 1 | -0/+18 |
| | | | |||||
* | | | Fixed bug #75601 Thread race in PCRE JIT support | Anatol Belski | 2017-12-05 | 1 | -0/+19 |
| | | | |||||
* | | | Fix macro name | Anatol Belski | 2017-11-21 | 1 | -8/+8 |
| | | | |||||
* | | | Merge branch 'PHP-7.2' | Anatol Belski | 2017-11-21 | 1 | -0/+8 |
|\ \ \ | |/ / | | | | | | | | | | * PHP-7.2: Fixed #75539 and #74183 - preg_last_error not returning error code after error | ||||
| * | | Merge branch 'PHP-7.1' into PHP-7.2 | Anatol Belski | 2017-11-21 | 1 | -0/+8 |
| |\ \ | | |/ | | | | | | | | | | * PHP-7.1: Fixed #75539 and #74183 - preg_last_error not returning error code after error | ||||
| | * | Merge branch 'PHP-7.0' into PHP-7.1 | Anatol Belski | 2017-11-21 | 1 | -0/+8 |
| | |\ | | | | | | | | | | | | | | | | | * PHP-7.0: Fixed #75539 and #74183 - preg_last_error not returning error code after error | ||||
| | | * | Fixed #75539 and #74183 - preg_last_error not returning error code after error | Nester | 2017-11-21 | 1 | -0/+8 |
| | | | | |||||
| | | * | Update copyright headers to 2017 | Sammy Kaye Powers | 2017-01-04 | 1 | -1/+1 |
| | | | | |||||
| | * | | Update copyright headers to 2017 | Sammy Kaye Powers | 2017-01-04 | 1 | -1/+1 |
| | | | | |||||
* | | | | seemingly a tiny typo error in pcre module. | David Carlier | 2017-11-21 | 1 | -1/+1 |
| | | | | |||||
* | | | | Enable and fix printf() format warnings | Nikita Popov | 2017-11-16 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | Add _unchecked() variants of zend_spprintf and zend_strpprintf for cases where we specifically want to disable these checks, such as use of %H. | ||||
* | | | | Merge branch 'master' of git.php.net:php-src | Dmitry Stogov | 2017-11-16 | 1 | -1/+4 |
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of git.php.net:php-src: Fix (*NO_JIT) usage when JIT is enabled Refactor ASCII to wide conversion | ||||
| * | | | | Fix (*NO_JIT) usage when JIT is enabled | Anatol Belski | 2017-11-16 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If (*NO_JIT) is put into the pattern, the JIT compilation will still succeed but produce no code. The pattern will still have to be interpreted and is not suitable for the JIT fast path. This means, we still need to check the pattern info after JIT compilation and only set the flags when the JIT code was produced. | ||||
* | | | | | Avoid unnecessary reference-counting on strings. | Dmitry Stogov | 2017-11-16 | 1 | -11/+19 |
|/ / / / | |||||
* | | | | Add missing ifdef | Anatol Belski | 2017-11-15 | 1 | -0/+2 |
| | | | | |||||
* | | | | Initialize jit global | Anatol Belski | 2017-11-14 | 1 | -0/+1 |
| | | | | |||||
* | | | | Fix wrong return | Anatol Belski | 2017-11-14 | 1 | -1/+1 |
| | | | | |||||
* | | | | Use already available pattern length, fix signedness warnings | Anatol Belski | 2017-11-14 | 1 | -12/+14 |
| | | | | |||||
* | | | | Merge branch 'PHP-7.2' | Anatol Belski | 2017-11-14 | 1 | -4/+4 |
|\ \ \ \ | |/ / / | | | | | | | | | | | | | * PHP-7.2: Fix UTF check in pcre_grep | ||||
| * | | | Fix UTF check in pcre_grep | Anatol Belski | 2017-11-14 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this case it loops through different subjects without looking for sub matches and matches are done against the same pattern. Thus, don't reset the UTF check flag but use it to check whether JIT should be used and otherwise let PCRE to do the job according to what was saved into the pattern. | ||||
* | | | | Merge branch 'PHP-7.2' | Anatol Belski | 2017-11-14 | 1 | -1/+1 |
|\ \ \ \ | |/ / / | | | | | | | | | | | | | * PHP-7.2: Fix uninitialized flag when JIT is disabled | ||||
| * | | | Fix uninitialized flag when JIT is disabled | Anatol Belski | 2017-11-14 | 1 | -1/+1 |
| | | | | |||||
* | | | | Added PCRE_JIT_SUPPORT flag | Xinchen Hui | 2017-11-14 | 1 | -0/+6 |
| | | | | |||||
* | | | | Fix calculation as sync with 48cee6d1 | Anatol Belski | 2017-11-14 | 1 | -1/+1 |
| | | | | |||||
* | | | | Eliminated redundand code | Dmitry Stogov | 2017-11-14 | 1 | -35/+35 |
| | | | | |||||
* | | | | We don't need to calculate size of offset array, because ↵ | Dmitry Stogov | 2017-11-14 | 1 | -24/+18 |
| | | | | | | | | | | | | | | | | pcre2_match_data_create() already takes size in pairs. |