mirror of
https://github.com/php/php-src.git
synced 2025-01-23 20:23:31 +08:00
16 lines
259 B
PHP
16 lines
259 B
PHP
--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)
|