Annotation of embedaddon/php/ext/standard/tests/file/stream_rfc2397_004.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Stream: RFC2397 Mozilla tests
3: --INI--
4: allow_url_fopen=1
5: --FILE--
6: <?php
7:
8: $streams = array(
9: 'data://,;test',
10: 'data://text/plain,test',
11: 'data://text/plain;charset=US-ASCII,test',
12: 'data://;charset=UTF-8,Hello',
13: 'data://text/plain;charset=UTF-8,Hello',
14: 'data://,a,b',
15: );
16:
17: foreach($streams as $stream)
18: {
19: var_dump(@file_get_contents($stream));
20: }
21:
22: ?>
23: ===DONE===
24: <?php exit(0); ?>
25: --EXPECTF--
26: string(5) ";test"
27: string(4) "test"
28: string(4) "test"
29: bool(false)
30: string(5) "Hello"
31: string(3) "a,b"
32: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>