Annotation of embedaddon/php/ext/standard/tests/strings/chunk_split.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: chunk_split() function
3: --FILE--
4: <?php
5: echo chunk_split('abc', 1, '-')."\n";
6: echo chunk_split('foooooooooooooooo', 5)."\n";
7: echo chunk_split(str_repeat('X', 2*76))."\n";
8: echo chunk_split("test", 10, "|end") . "\n";
9:
10: $a=str_repeat("B", 65535);
11: $b=1;
12: $c=str_repeat("B", 65535);
13: var_dump(chunk_split($a,$b,$c));
14:
15: $a=str_repeat("B", 65537);
16: $b=1;
17: $c=str_repeat("B", 65537);
18: var_dump(chunk_split($a,$b,$c));
19:
20:
21: ?>
22: --EXPECT--
23: a-b-c-
24: foooo
25: ooooo
26: ooooo
27: oo
28:
29: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
30: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
31:
32: test|end
33: bool(false)
34: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>