summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/stream_rfc2397_001.phpt
blob: 040dc26f58afa85a94f99bbfadd44fca3f1d2616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Stream: RFC2397 getting the data
--INI--
allow_url_fopen=1
--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===