~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/pcre/tests/bug20528.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}