Skip to content

Commit aa92d42

Browse files
committed
If there's no setlocale, char tables are not used
1 parent b592cd7 commit aa92d42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/pcre/php_pcre.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,9 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex)
544544
char *pattern;
545545
size_t pattern_len;
546546
uint32_t poptions = 0;
547+
#if HAVE_SETLOCALE
547548
const uint8_t *tables = NULL;
549+
#endif
548550
zval *zv;
549551
pcre_cache_entry new_entry;
550552
int rc;

0 commit comments

Comments
 (0)