From 86ae8add13d95785e28fc4ccab022c9469796fda Mon Sep 17 00:00:00 2001 From: Rui Hirokawa Date: Fri, 13 Jul 2001 03:37:18 +0000 Subject: added an option to support utf-8 in pcre. --- ext/pcre/php_pcre.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 749c34f5e5..6ea088e5c6 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -259,6 +259,7 @@ static pcre* pcre_get_compiled_regex(char *regex, pcre_extra *extra, int *preg_o case 'S': do_study = 1; break; case 'U': coptions |= PCRE_UNGREEDY; break; case 'X': coptions |= PCRE_EXTRA; break; + case 'u': coptions |= PCRE_UTF8; break; /* Custom preg options */ case 'e': poptions |= PREG_REPLACE_EVAL; break; -- cgit v1.2.1