Annotation of embedaddon/php/ext/standard/tests/file/stream_rfc2397_005.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Stream: RFC2397 without //
3: --INI--
4: allow_url_fopen=1
5: --FILE--
6: <?php
7:
8: $streams = array(
9: 'data:,A%20brief%20note',
10: 'data:application/vnd-xxx-query,select_vcount,fcol_from_fieldtable/local',
11: 'data:;base64,Zm9vYmFyIGZvb2Jhcg==',
12: 'data:,;test',
13: 'data:text/plain,test',
14: 'data:text/plain;charset=US-ASCII,test',
15: 'data:;charset=UTF-8,Hello',
16: 'data:text/plain;charset=UTF-8,Hello',
17: 'data:,a,b',
18: );
19:
20: foreach($streams as $stream)
21: {
22: var_dump(@file_get_contents($stream));
23: }
24:
25: ?>
26: ===DONE===
27: <?php exit(0); ?>
28: --EXPECTF--
29: string(12) "A brief note"
30: string(40) "select_vcount,fcol_from_fieldtable/local"
31: string(13) "foobar foobar"
32: string(5) ";test"
33: string(4) "test"
34: string(4) "test"
35: bool(false)
36: string(5) "Hello"
37: string(3) "a,b"
38: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>