summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/bug47997.phpt
blob: f13a19d1f15550d2232e305e6f41aafb332a4e49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #47997 (stream_copy_to_stream returns 1 on empty streams)
--INI--
allow_url_fopen=1
--FILE--
<?php

$in = fopen('data://text/plain,', 'rb+');
$out = fopen('php://memory', 'wb+');

var_dump(stream_copy_to_stream($in, $out));

?>
--EXPECT--
int(0)