Annotation of embedaddon/php/ext/standard/tests/streams/bug47997.phpt, revision 1.1.1.2

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>