1--TEST--
2Stream: RFC2397 without //
3--INI--
4allow_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
20foreach($streams as $stream)
21{
22	var_dump(@file_get_contents($stream));
23}
24
25?>
26===DONE===
27<?php exit(0); ?>
28--EXPECTF--
29string(12) "A brief note"
30string(40) "select_vcount,fcol_from_fieldtable/local"
31string(13) "foobar foobar"
32string(5) ";test"
33string(4) "test"
34string(4) "test"
35bool(false)
36string(5) "Hello"
37string(3) "a,b"
38===DONE===
39