xref: /PHP-8.3/ext/pcre/tests/bug79363.phpt (revision 9f2d0395)
1--TEST--
2Bug #79363 (\p{L} doesn't work alongside \p{Arabic} in a character class)
3--FILE--
4<?php
5$str = 'lower UPPER';
6var_dump(preg_replace('/[\p{L}\p{Arabic}]/', '0', $str));
7var_dump(preg_replace('/[^\p{L}\p{Arabic}]/', '0', $str));
8?>
9--EXPECT--
10string(11) "00000 00000"
11string(11) "lower0UPPER"
12