Added a test case for bug #20528.

This commit is contained in:
Ilia Alshanetsky 2002-11-22 00:08:57 +00:00
parent c7dd366c1a
commit 2ca45412ed

View File

@ -0,0 +1,30 @@
--TEST--
preg_split() bug #20528
--SKIPIF--
<?php
if (!extension_loaded("pcre")) {
die("skip pcre extension is not available");
}
?>
--FILE--
<?php
$data = '(#11/19/2002#)';
var_dump(preg_split('/\b/', $data));
?>
--EXPECT--
array(7) {
[0]=>
string(2) "(#"
[1]=>
string(2) "11"
[2]=>
string(1) "/"
[3]=>
string(2) "19"
[4]=>
string(1) "/"
[5]=>
string(4) "2002"
[6]=>
string(2) "#)"
}