summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-09-17 14:08:32 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-09-17 14:08:32 +0200
commitc584e84043468fd806f696a926d8e00bed11282c (patch)
treeae43cc504c19fd718de7ab6e1ee96e75cbdc7d44
parentec08180738cee15032700be465816bbdd3c492dc (diff)
parent9f2d03952daf5348d7f18c18e82607979e28df12 (diff)
downloadphp-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.phpt11
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"