xref: /PHP-7.4/ext/pcre/tests/bug20528.phpt (revision 782352c5)
1--TEST--
2Bug #20528 (preg_split() drops characters (re-opens Bug #15413))
3--FILE--
4<?php
5	$data = '(#11/19/2002#)';
6	var_dump(preg_split('/\b/', $data));
7?>
8--EXPECT--
9array(7) {
10  [0]=>
11  string(2) "(#"
12  [1]=>
13  string(2) "11"
14  [2]=>
15  string(1) "/"
16  [3]=>
17  string(2) "19"
18  [4]=>
19  string(1) "/"
20  [5]=>
21  string(4) "2002"
22  [6]=>
23  string(2) "#)"
24}
25