#20984 [Com]: copy( "file.txt" , "file.txt" ) empties the file

2002-12-14 Thread john . doe
 ID:   20984
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

copy( "toto.txt" , "toto.txt"); // then toto.txt is empty





-- 
Edit this bug report at http://bugs.php.net/?id=20984&edit=1




#20984 [NEW]: copy( "file.txt" , "file.txt" ) empties the file

2002-12-13 Thread john . doe
From: [EMAIL PROTECTED]
Operating system: w2k
PHP version:  4.2.3
PHP Bug Type: Unknown/Other Function
Bug description:  copy( "file.txt" , "file.txt" ) empties the file

copy( "toto.txt" , "toto.txt"); // then toto.txt is empty

-- 
Edit bug report at http://bugs.php.net/?id=20984&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20984&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=20984&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=20984&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20984&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=20984&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=20984&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=20984&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=20984&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=20984&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=20984&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20984&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=20984&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=20984&r=isapi