summaryrefslogtreecommitdiff
path: root/ext/pcre
diff options
context:
space:
mode:
authorRui Hirokawa <hirokawa@php.net>2001-07-13 03:37:18 +0000
committerRui Hirokawa <hirokawa@php.net>2001-07-13 03:37:18 +0000
commit86ae8add13d95785e28fc4ccab022c9469796fda (patch)
tree80439a1b38692bcc61c31ee89bbffa782229b45d /ext/pcre
parent84cc39ea5f48677556c6c354a6a43cd82262efa2 (diff)
downloadphp-git-86ae8add13d95785e28fc4ccab022c9469796fda.tar.gz
added an option to support utf-8 in pcre.
Diffstat (limited to 'ext/pcre')
-rw-r--r--ext/pcre/php_pcre.c1
1 files changed, 1 insertions, 0 deletions
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;