Return to stream_rfc2397_001.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / file |
1.1 misho 1: --TEST-- 2: Stream: RFC2397 getting the data 3: --INI-- 4: allow_url_fopen=1 5: --FILE-- 6: <?php 7: 8: $data = 'data://,hello world'; 9: 10: var_dump(file_get_contents($data)); 11: 12: $file = fopen($data, 'r'); 13: unset($data); 14: 15: var_dump(stream_get_contents($file)); 16: 17: ?> 18: ===DONE=== 19: --EXPECT-- 20: string(11) "hello world" 21: string(11) "hello world" 22: ===DONE===