mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
19 lines
379 B
PHP
19 lines
379 B
PHP
--TEST--
|
|
stream_copy_to_stream() from empty file
|
|
--FILE--
|
|
<?php
|
|
|
|
$tmp_empty_file = __DIR__ . "/stream_copy_to_stream_empty.tmp";
|
|
file_put_contents($tmp_empty_file, "");
|
|
|
|
$in = fopen($tmp_empty_file, 'r');
|
|
$out = fopen('php://memory', 'w');
|
|
var_dump(stream_copy_to_stream($in, $out));
|
|
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
unlink(__DIR__ . "/stream_copy_to_stream_empty.tmp");
|
|
?>
|
|
--EXPECT--
|
|
int(0)
|