diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 48705d2a63b..e46c83accc0 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;