php-src/ext/standard/tests/file/stream_rfc2397_001.phpt
2006-05-14 00:45:27 +00:00

20 lines
293 B
PHP
Executable File

--TEST--
Stream: RFC2397 getting the data
--FILE--
<?php
$data = 'data://,hello world';
var_dump(file_get_contents($data));
$file = fopen($data, 'r');
unset($data);
var_dump(stream_get_contents($file));
?>
===DONE===
--EXPECT--
string(11) "hello world"
string(11) "hello world"
===DONE===