#20984 [Com]: copy( "file.txt" , "file.txt" ) empties the file
| From: | john dot doe at nowhere dot com | Date: | Sat, 14 Dec 2002 14:16:16 +0000 |
| Subject: | #20984 [Com]: copy( "file.txt" , "file.txt" ) empties the file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27699@lists.php.net to get a copy of this message | ||
ID: 20984
Comment by: john.doe@nowhere.com
Reported By: john.doe@nowhere.com
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: w2k
PHP Version: 4.2.3
New Comment:
Well, It's not allowed to do that in a command window.
Why should this function empty the file.
I suggest return false only and leave the file as it is like in the
command window.
Previous Comments:
------------------------------------------------------------------------
[2002-12-13 04:05:32] derick@php.net
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
------------------------------------------------------------------------
[2002-12-13 03:39:33] john.doe@nowhere.com
copy( "toto.txt" , "toto.txt"); // then toto.txt is empty
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20984&edit=1