History log of /PHP-7.4/ext/pcre/php_pcre.c (Results 76 – 100 of 516)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 8fdef981 21-Nov-2017 Nester

Fixed #75539 and #74183 - preg_last_error not returning error code after error


# d0062700 20-Nov-2017 David Carlier

seemingly a tiny typo error in pcre module.


# 26f8fc83 16-Nov-2017 Nikita Popov

Enable and fix printf() format warnings

Add _unchecked() variants of zend_spprintf and zend_strpprintf for
cases where we specifically want to disable these checks, such as
use of %H.


# ccc12b82 16-Nov-2017 Dmitry Stogov

Avoid unnecessary reference-counting on strings.


# a370a6af 16-Nov-2017 Anatol Belski

Fix (*NO_JIT) usage when JIT is enabled

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
interprete

Fix (*NO_JIT) usage when JIT is enabled

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.

show more ...


# ce85d0f2 15-Nov-2017 Anatol Belski

Add missing ifdef


# 691a5a9c 14-Nov-2017 Anatol Belski

Initialize jit global


# 91407fb8 14-Nov-2017 Anatol Belski

Fix wrong return


# 13696d7a 14-Nov-2017 Anatol Belski

Use already available pattern length, fix signedness warnings


# 0d133239 14-Nov-2017 Anatol Belski

Fix UTF check in pcre_grep

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 c

Fix UTF check in pcre_grep

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.

show more ...


# 3c241ea3 14-Nov-2017 Anatol Belski

Fix uninitialized flag when JIT is disabled


# 266f19ba 14-Nov-2017 Xinchen Hui

Added PCRE_JIT_SUPPORT flag


# e8ac7d8d 13-Nov-2017 Anatol Belski

Fix calculation as sync with 48cee6d1


# 81dd6de3 13-Nov-2017 Dmitry Stogov

Eliminated redundand code


# 48cee6d1 13-Nov-2017 Dmitry Stogov

We don't need to calculate size of offset array, because pcre2_match_data_create() already takes size in pairs.


# f4edd089 13-Nov-2017 Anatol Belski

Put hardcoded value into macro


# a5bc5aed 12-Oct-2017 Anatol Belski

Patch core for PCRE2 support

RFC https://wiki.php.net/rfc/pcre2-migration


# f5664a14 01-Nov-2017 Dmitry Stogov

PCRE cache is "thread-local"


# a8a17a72 01-Nov-2017 Xinchen Hui

RC manipulation cleanup


# 160f6d62 31-Oct-2017 Dmitry Stogov

single check is enough


# 2e839246 31-Oct-2017 Dmitry Stogov

Added zend_hash_add_new_mem/zend_hash_str_add_new_mem. Use them to add new elements into PCRE cache (we checked the existance before).


Revision tags: php-7.1.11RC1, php-7.2.0RC4, php-7.0.25RC1, php-7.1.10, php-7.2.0RC3, php-7.0.24, php-7.2.0RC2, php-7.1.10RC1, php-7.0.24RC1, php-7.1.9, php-7.2.0RC1, php-7.0.23
# ef90e37b 18-Aug-2017 Dmitry Stogov

Fixed bug #75089 (preg_grep() is not reporting PREG_BAD_UTF8_ERROR after first input string)


Revision tags: php-7.1.9RC1, php-7.2.0beta3, php-7.0.23RC1, php-7.1.8, php-7.2.0beta2, php-7.0.22, php-7.1.8RC1, php-7.2.0beta1, php-7.0.22RC1
# 8a287c0e 11-Jul-2017 Anatol Belski

Upgrade bundled PCRE to 8.41

HEADSUP! With PCRE 8.39 the JIT related code was changed in the way,
that additional valgrind options became almost unavoidable. Valgrind
had it already

Upgrade bundled PCRE to 8.41

HEADSUP! With PCRE 8.39 the JIT related code was changed in the way,
that additional valgrind options became almost unavoidable. Valgrind
had it already sometimes hard with JIT, now there are seem to be more
cases requiring special valgrind options.

For this reason, the new configure option --with-pcre-valgrind was
introduced. The option is development/debugging only and turns on the
Valgrind related pieces in PCRE, so then false positives are avoided
to the big part. In addition, run-tests.php was added a new valgrind
option, when the leak check is enabled and the test filepath contains
pcre.

Thus, to debug the code related to PCRE with JIT enabled, two things
would likely make sense

- configure --with-pcre-valgrind
- valgrind option --smc-check=all if run-tests.php is not used

The checks so far reveal no new issues.

show more ...


# 29653da3 07-Jul-2017 Dmitry Stogov

Fixed bug #74873 (Minor BC break: PCRE_JIT changes output of preg_match()).


Revision tags: php-5.6.31, php-7.0.21, php-7.1.7, php-7.2.0alpha3
# f626a783 27-Jun-2017 Dmitry Stogov

Avoid string duplication in preg_split()


12345678910>>...21