1--TEST--
2Stream: RFC2397 Mozilla tests
3--INI--
4allow_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
17foreach($streams as $stream)
18{
19    var_dump(@file_get_contents($stream));
20}
21
22?>
23--EXPECT--
24string(5) ";test"
25string(4) "test"
26string(4) "test"
27bool(false)
28string(5) "Hello"
29string(3) "a,b"
30