![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: Bug #47997 (stream_copy_to_stream returns 1 on empty streams) ! 3: --FILE-- ! 4: <?php ! 5: ! 6: $in = fopen('data://text/plain,', 'rb+'); ! 7: $out = fopen('php://memory', 'wb+'); ! 8: ! 9: var_dump(stream_copy_to_stream($in, $out)); ! 10: ! 11: ?> ! 12: --EXPECT-- ! 13: int(0)