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--EXPECT-- 27string(12) "A brief note" 28string(40) "select_vcount,fcol_from_fieldtable/local" 29string(13) "foobar foobar" 30string(5) ";test" 31string(4) "test" 32string(4) "test" 33bool(false) 34string(5) "Hello" 35string(3) "a,b" 36