]> granicus.if.org Git - php/commitdiff
new test
authorArnaud Le Blanc <lbarnaud@php.net>
Sun, 19 Apr 2009 13:56:16 +0000 (13:56 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Sun, 19 Apr 2009 13:56:16 +0000 (13:56 +0000)
ext/standard/tests/streams/bug47997.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/streams/bug47997.phpt b/ext/standard/tests/streams/bug47997.phpt
new file mode 100644 (file)
index 0000000..1ad2890
--- /dev/null
@@ -0,0 +1,13 @@
+--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)