repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updates to Tomato RAF including NGINX && PHP
[tomato.git]
/
release
/
src
/
router
/
php
/
ext
/
pcre
/
tests
/
bug20528.phpt
blob
8182fd9bfe5a7345d657ad9e330813fe218cfe8b
1
--TEST--
2
Bug #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--
9
array(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
}