#35917 [Opn->Bgs]: stream_copy_to_stream() cause data lost when copy from stream to same stream
| From: | derick@php.net | Date: | Fri, 06 Jan 2006 08:36:07 +0000 |
| Subject: | #35917 [Opn->Bgs]: stream_copy_to_stream() cause data lost when copy from stream to same stream | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91615@lists.php.net to get a copy of this message | ||
ID: 35917
Updated by: derick@php.net
Reported By: sqchen at citiz dot net
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: redhat 7.3
PHP Version: 5.1.1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
.
Previous Comments:
------------------------------------------------------------------------
[2006-01-06 08:59:17] sqchen at citiz dot net
Description:
------------
This problem is same as copy() function
Reproduce code:
---------------
<?php
$des5 = fopen("1.txt", "r"); //"hello" in 1.txt
$des6 = fopen("1.txt", "w");
stream_copy_to_stream($des5, $des6);
readfile("1.txt");
?>
Expected result:
----------------
hello
Actual result:
--------------
none
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35917&edit=1