Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / standard / tests / streams / bug47997.phpt
blobf13a19d1f15550d2232e305e6f41aafb332a4e49
1 --TEST--
2 Bug #47997 (stream_copy_to_stream returns 1 on empty streams)
3 --INI--
4 allow_url_fopen=1
5 --FILE--
6 <?php
8 $in = fopen('data://text/plain,', 'rb+');
9 $out = fopen('php://memory', 'wb+');
11 var_dump(stream_copy_to_stream($in, $out));
14 --EXPECT--
15 int(0)