1--TEST--
2Stream: RFC2397 with corrupt? payload
3--INI--
4allow_url_fopen=1
5--FILE--
6<?php
7
8$streams = array(
9	"data:;base64,\0Zm9vYmFyIGZvb2Jhcg==",
10	"data:;base64,Zm9vYmFy\0IGZvb2Jhcg==",
11	'data:;base64,#Zm9vYmFyIGZvb2Jhcg==',
12	'data:;base64,#Zm9vYmFyIGZvb2Jhc=',
13	);
14
15foreach($streams as $stream)
16{
17	var_dump(file_get_contents($stream));
18}
19
20?>
21===DONE===
22<?php exit(0); ?>
23--EXPECTF--
24Warning: file_get_contents() expects parameter 1 to be a valid path, string given in %s line %d
25NULL
26
27Warning: file_get_contents() expects parameter 1 to be a valid path, string given in %s line %d
28NULL
29
30Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhcg==): failed to open stream: rfc2397: unable to decode in %sstream_rfc2397_006.php on line %d
31bool(false)
32
33Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhc=): failed to open stream: rfc2397: unable to decode in %sstream_rfc2397_006.php on line %d
34bool(false)
35===DONE===
36