#32945 [Opn->Asn]: copy size 0 file with ftp wrapper
| From: | sniper@php.net | Date: | Tue, 10 May 2005 13:17:36 +0000 |
| Subject: | #32945 [Opn->Asn]: copy size 0 file with ftp wrapper | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78854@lists.php.net to get a copy of this message | ||
ID: 32945
Updated by: sniper@php.net
Reported By: jxmaster at msn dot com
-Status: Open
+Status: Assigned
Bug Type: Filesystem function related
Operating System: freebsd4.3,windowsxp,linux9.0
PHP Version: 4.3.11
-Assigned To:
+Assigned To: pollita
New Comment:
Sara, you're most familiar with this.. (this propably happens in PHP 5
too)
Previous Comments:
------------------------------------------------------------------------
[2005-05-04 17:28:47] jxmaster at msn dot com
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32945&edit=1