diff options
| author | Rui Hirokawa <hirokawa@php.net> | 2001-07-13 03:37:18 +0000 |
|---|---|---|
| committer | Rui Hirokawa <hirokawa@php.net> | 2001-07-13 03:37:18 +0000 |
| commit | 86ae8add13d95785e28fc4ccab022c9469796fda (patch) | |
| tree | 80439a1b38692bcc61c31ee89bbffa782229b45d /ext/pcre/php_pcre.c | |
| parent | 84cc39ea5f48677556c6c354a6a43cd82262efa2 (diff) | |
| download | php-git-86ae8add13d95785e28fc4ccab022c9469796fda.tar.gz | |
added an option to support utf-8 in pcre.
Diffstat (limited to 'ext/pcre/php_pcre.c')
| -rw-r--r-- | ext/pcre/php_pcre.c | 1 |
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; |
