php-src/ext/standard/tests/file/stream_rfc2397_001.phpt

22 lines
319 B
Plaintext
Raw Normal View History

2006-05-13 17:58:58 +00:00
--TEST--
2007-11-05 17:43:21 +00:00
Stream: RFC2397 getting the data
--INI--
allow_url_fopen=1
2006-05-13 17:58:58 +00:00
--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===