]> granicus.if.org Git - php/commit
Add pcre_get_compiled_regex_cache_ex() with local_aware flag
authorSergei Turchanov <turchanov@farpost.com>
Tue, 8 Oct 2019 07:55:07 +0000 (17:55 +1000)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 8 Oct 2019 14:11:55 +0000 (16:11 +0200)
commita8f60ac9dd3ba8fed24370799603b92487fdf362
tree8a3ccd6f61297728d6ffca60742b12b07598a595
parent46894580b06c1ba630a804ff0bbb9e61076720f4
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.
ext/pcre/php_pcre.c
ext/pcre/php_pcre.h