diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2018-06-21 19:18:15 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-06-21 22:45:08 +0200 |
commit | 71d16feebbb38f69007d8b7bec44afeb916281fb (patch) | |
tree | 5d4fa844574689e3b186e9e94b4bdba8b43b6728 /ext/pcre/php_pcre.c | |
parent | c2a3ab070b2d2b81018917c6dd078aa26cb3dcd1 (diff) | |
download | php-git-71d16feebbb38f69007d8b7bec44afeb916281fb.tar.gz |
Fix #76512: \w no longer includes unicode characters
The migration from PCRE to PCRE2 missed to rename once occurrence of
`PCRE_UCP` to `PCRE2_UCP`. We fix that. We also revert the changes to
bug52971.phpt which had been incorrectly made in commit a5bc5ae[1].
[1] <http://git.php.net/?p=php-src.git;a=commit;h=a5bc5aed71f7a15f14f33bb31b8e17bf5f327e2d>
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index ffecc39422..9e1a5a6a50 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -672,8 +672,8 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex) case 'u': coptions |= PCRE2_UTF; /* In PCRE, by default, \d, \D, \s, \S, \w, and \W recognize only ASCII characters, even in UTF-8 mode. However, this can be changed by setting - the PCRE_UCP option. */ -#ifdef PCRE_UCP + the PCRE2_UCP option. */ +#ifdef PCRE2_UCP coptions |= PCRE2_UCP; #endif break; |