|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-17 11:08 UTC] jani@php.net
[2009-04-19 13:56 UTC] lbarnaud@php.net
[2012-02-25 10:58 UTC] odoucet@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
Description: ------------ Function returns 1 even if used to copy empty stream. Reproduce code: --------------- <?php // Creating empty file $src = fopen('srcfile.tmp', 'w+'); fclose($src); $src = fopen('srcfile.tmp', 'r'); $dst = fopen('dstfile.tmp', 'w+'); echo stream_copy_to_stream($src, $dst); fclose($src); fclose($dst); ?> Expected result: ---------------- 0 Actual result: -------------- 1