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 29string(13) "foobar foobar" 30 31Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhc=): failed to open stream: rfc2397: unable to decode in %sstream_rfc2397_006.php on line %d 32bool(false) 33===DONE=== 34