diff options
author | Anatol Belski <ab@php.net> | 2018-06-22 17:27:41 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-06-22 17:31:26 +0200 |
commit | aa92d4201871138c8b5cd5013f82388eb2a0841a (patch) | |
tree | e7f9c74c35a7625dfeabed15936a27cb562be533 /ext/pcre/php_pcre.c | |
parent | b592cd7b989a8d49ec505237e08dca0f19e3cad6 (diff) | |
download | php-git-aa92d4201871138c8b5cd5013f82388eb2a0841a.tar.gz |
If there's no setlocale, char tables are not used
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 48705d2a63..e46c83accc 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -544,7 +544,9 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex) char *pattern; size_t pattern_len; uint32_t poptions = 0; +#if HAVE_SETLOCALE const uint8_t *tables = NULL; +#endif zval *zv; pcre_cache_entry new_entry; int rc; |