mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
20 lines
276 B
PHP
Executable File
20 lines
276 B
PHP
Executable File
--TEST--
|
|
Stream: RFC2397
|
|
--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===
|