diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-09-17 14:08:32 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-09-17 14:08:32 +0200 |
commit | c584e84043468fd806f696a926d8e00bed11282c (patch) | |
tree | ae43cc504c19fd718de7ab6e1ee96e75cbdc7d44 | |
parent | ec08180738cee15032700be465816bbdd3c492dc (diff) | |
parent | 9f2d03952daf5348d7f18c18e82607979e28df12 (diff) | |
download | php-git-c584e84043468fd806f696a926d8e00bed11282c.tar.gz |
Merge branch 'PHP-7.4' into master
* PHP-7.4:
Update to PCRE2 10.35
-rw-r--r-- | ext/pcre/tests/bug79363.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/pcre/tests/bug79363.phpt b/ext/pcre/tests/bug79363.phpt new file mode 100644 index 0000000000..fffeb50e3c --- /dev/null +++ b/ext/pcre/tests/bug79363.phpt @@ -0,0 +1,11 @@ +--TEST-- +Bug #79363 (\p{L} doesn't work alongside \p{Arabic} in a character class) +--FILE-- +<?php +$str = 'lower UPPER'; +var_dump(preg_replace('/[\p{L}\p{Arabic}]/', '0', $str)); +var_dump(preg_replace('/[^\p{L}\p{Arabic}]/', '0', $str)); +?> +--EXPECT-- +string(11) "00000 00000" +string(11) "lower0UPPER" |