php-src/ext/standard/tests/streams/bug47997.phpt
Arnaud Le Blanc 790d160b6f new test
2009-04-19 13:56:08 +00:00

14 lines
233 B
PHP

--TEST--
Bug #47997 (stream_copy_to_stream returns 1 on empty streams)
--FILE--
<?php
$in = fopen('data://text/plain,', 'rb+');
$out = fopen('php://memory', 'wb+');
var_dump(stream_copy_to_stream($in, $out));
?>
--EXPECT--
int(0)