summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-03-18 10:51:04 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-03-18 10:51:04 +0100
commit3b88e65265dde14db8b61a0679c8cb67b6a392d8 (patch)
tree66b9f0041403fda5a570b602ea37b498509df82e /ext/pcre/php_pcre.c
parent234af00bcb93e0be1d9b17ab3f2d366b09a99611 (diff)
parent4dce2f83f5c7d13c28a95d45dd6d905504474774 (diff)
downloadphp-git-3b88e65265dde14db8b61a0679c8cb67b6a392d8.tar.gz
Merge branch 'PHP-8.0'
* PHP-8.0: Fix locale switch back to C in pcre
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 08c3381cde..63f558d057 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -790,8 +790,8 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache_ex(zend_string *regex, in
zend_hash_add_ptr(&char_tables, _k, (void *)tables);
zend_string_release(_k);
}
- pcre2_set_character_tables(cctx, tables);
}
+ pcre2_set_character_tables(cctx, tables);
/* Compile pattern and display a warning if compilation failed. */
re = pcre2_compile((PCRE2_SPTR)pattern, pattern_len, coptions, &errnumber, &erroffset, cctx);