History log of /PHP-7.3/ext/pcre/php_pcre.c (Results 1 – 25 of 483)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 13bfa9f5 29-Jan-2020 Nikita Popov

Fixed bug #79188


Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0
# e1da72bd 22-Nov-2019 Christoph M. Becker

Fix #78853: preg_match() may return integer > 1

Commit 54ebebd[1] optimized the match loop, but for this case it has
been overlooked, that we must only loop if we're doing global matchin

Fix #78853: preg_match() may return integer > 1

Commit 54ebebd[1] optimized the match loop, but for this case it has
been overlooked, that we must only loop if we're doing global matching.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=54ebebd686255c5f124af718c966edb392782d4a>

show more ...


Revision tags: php-7.2.25, php-7.3.12, php-7.4.0RC6
# 6dcc0b85 07-Nov-2019 Nikita Popov

Fix php_pcre_mutex_free()

We should only set the mutex to NULL if we actually freed it.
Due to missing braces non-main threads may currently set it to
NULL first.


Revision tags: php-7.3.12RC1, php-7.2.25RC1, php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1
# a8f60ac9 08-Oct-2019 Sergei Turchanov

Add pcre_get_compiled_regex_cache_ex() with local_aware flag

A new function `pcre_get_compiled_regex_cache_ex()` is introduced,
which allows to compile regexp pattern using the "C" local

Add pcre_get_compiled_regex_cache_ex() with local_aware flag

A new function `pcre_get_compiled_regex_cache_ex()` is introduced,
which allows to compile regexp pattern using the "C" locale instead
of a current locale.

This will be needed to replace setlocale() usage in fileinfo,
which is not thread-safe.

show more ...


# 1d6e9da7 04-Oct-2019 Nikita Popov

Improve diagnostic on PCRE JIT mmap failure

Print a more informative message that indicates that this is
likely a permission issue, and also indicate that pcre.jit=0
can be used to w

Improve diagnostic on PCRE JIT mmap failure

Print a more informative message that indicates that this is
likely a permission issue, and also indicate that pcre.jit=0
can be used to work around it.

Also automatically disable the JIT, so that this message is
only shown once.

See bug #78630.

show more ...


Revision tags: php-7.4.0RC3, php-7.2.23, php-7.3.10, php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1, php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1, php-7.4.0beta2, php-7.1.31, php-7.2.21, php-7.3.8, php-7.4.0beta1, php-7.2.21RC1, php-7.3.8RC1, php-7.4.0alpha3, php-7.3.7, php-7.2.20, php-7.4.0alpha2, php-7.3.7RC3, php-7.3.7RC2, php-7.2.20RC2
# 03db04c3 17-Jun-2019 Nikita Popov

Accept null for preg_quote delimiter argument

Related to bug #78163.


Revision tags: php-7.4.0alpha1, php-7.3.7RC1, php-7.2.20RC1, php-7.2.19, php-7.3.6, php-7.1.30, php-7.2.19RC1, php-7.3.6RC1, php-7.1.29, php-7.2.18, php-7.3.5, php-7.2.18RC1, php-7.3.5RC1, php-7.2.17, php-7.3.4, php-7.1.28
# 88460c01 31-Mar-2019 Christoph M. Becker

Fix #77827: preg_match does not ignore \r in regex flags


Revision tags: php-7.3.4RC1, php-7.2.17RC1
# 661bce47 19-Mar-2019 Nikita Popov

Fixed bug #76127

Per documentation, and consistent with other preg functions, we
should return false if an error occurred.


Revision tags: php-7.1.27, php-7.3.3, php-7.2.16, php-7.3.3RC1, php-7.2.16RC1, php-7.2.15, php-7.3.2, php-7.2.15RC1, php-7.3.2RC1, php-5.6.40, php-7.1.26, php-7.3.1, php-7.2.14
# b1deb98c 26-Dec-2018 Nikita Popov

Fixed bug #77338

Set preg_options to 0 in php_pcre_get_compiled_regex(_ex). These
options are intended to be passed to pcre2_match. However, we do
not have any flags that actually ne

Fixed bug #77338

Set preg_options to 0 in php_pcre_get_compiled_regex(_ex). These
options are intended to be passed to pcre2_match. However, we do
not have any flags that actually need to be set during matching
(all relevant flags are set during compilation), and the preg_flags
value is used for PHP-specific flags instead.

This parameter should be removed entirely in master to avoid confusion.

show more ...


Revision tags: php-7.2.14RC1, php-7.3.1RC1, php-5.6.39, php-7.1.25, php-7.2.13, php-7.0.33, php-7.3.0
# ef1269d5 01-Dec-2018 Anatol Belski

Fixed bug #77193 Infinite loop in preg_replace_callback

Don't return preallocated match data more than once in nested calls.


Revision tags: php-7.1.25RC1, php-7.2.13RC1, php-7.3.0RC6, php-7.1.24, php-7.2.12, php-7.3.0RC5, php-7.1.24RC1, php-7.2.12RC1, php-7.3.0RC4, php-7.1.23, php-7.2.11, php-7.3.0RC3, php-7.1.23RC1, php-7.2.11RC1, php-7.3.0RC2, php-5.6.38, php-7.1.22, php-7.3.0RC1, php-7.2.10, php-7.0.32
# 68c34ce0 09-Sep-2018 Anatol Belski

Make a copy unconditionally


# 9278be14 09-Sep-2018 Anatol Belski

Fix memory leak in pcre cache


# c6ddd456 08-Sep-2018 Anatol Belski

Fixed bug #76850 Exit code mangled by set locale/preg_match


Revision tags: php-7.1.22RC1, php-7.3.0beta3, php-7.2.10RC1, php-7.1.21, php-7.2.9, php-7.3.0beta2, php-7.1.21RC1, php-7.3.0beta1, php-7.2.9RC1, php-5.6.37, php-7.1.20, php-7.3.0alpha4, php-7.0.31, php-7.2.8, php-7.1.20RC1, php-7.2.8RC1, php-7.3.0alpha3
# 8d3f8ca1 03-Jul-2018 Peter Kokot

Remove unused Git attributes ident

The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
use

Remove unused Git attributes ident

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.

show more ...


# 5be44312 19-Jul-2018 Dmitry Stogov

Removed redundand code


# 54ebebd6 19-Jul-2018 Dmitry Stogov

Matching loops optimization


# b81d7129 19-Jul-2018 Dmitry Stogov

Micro optimizations


# 1820f2f2 18-Jul-2018 Dmitry Stogov

Reorder conditions


# 29f942b3 18-Jul-2018 Dmitry Stogov

Move "/e" modifier check into regex compiler


# 5d606511 18-Jul-2018 Dmitry Stogov

Merge "no_utf_check" and "g_notempty" into single "options".


# 81eb8e75 11-Jul-2018 Anatol Belski

Mark conditions unexpected


# 0630e3bc 05-Jul-2018 Anatol Belski

Reduce error buffer size

120 bytes is ample, the doc says.


# ff8f2710 29-Jun-2018 Anatol Belski

Check return value of pcre2_maketables()


# aa92d420 22-Jun-2018 Anatol Belski

If there's no setlocale, char tables are not used


# 8b58b2aa 22-Jun-2018 Anatol Belski

Don't discard char tables just generated


12345678910>>...20