summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"