| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2005-05-10 15:17 UTC] sniper@php.net
  [2005-05-11 23:02 UTC] tony2001@php.net
  [2005-08-30 13:10 UTC] sniper@php.net
  [2005-09-07 01:00 UTC] php-bugs at lists dot php dot net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 15:00:01 2025 UTC | 
Description: ------------ copy('ftp://username:password@ip/path/filename', 'tmp.dat'); If the file in the ftp server has size 0, the copy statment returned false. However, the file tmp.dat was created with size 0. copy ('localfile', 'tmp.dat') worked well. Reproduce code: --------------- copy('ftp://username:password@ip/path/filename', 'tmp.dat'); Expected result: ---------------- The file tmp.dat is created in the current directory with file zero and gets a TRUE return. Actual result: -------------- The file tmp.dat is created in the current directory with file zero, but gets a FALSE return.