#44740 [Opn->Fbk]: ftp empty file copy returns error
| From: | felipe@php.net | Date: | Sat, 12 Jul 2008 23:23:56 +0000 |
| Subject: | #44740 [Opn->Fbk]: ftp empty file copy returns error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126579@lists.php.net to get a copy of this message | ||
ID: 44740
Updated by: felipe@php.net
Reported By: luigi dot ghirardi at calltrade dot it
-Status: Open
+Status: Feedback
Bug Type: FTP related
Operating System: CentOS 5.1
PHP Version: 5.2.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
Previous Comments:
------------------------------------------------------------------------
[2008-04-16 10:21:36] luigi dot ghirardi at calltrade dot it
Description:
------------
using the COPY function to copy an empty file trough FTP returns error,
although the empty file is created correctly on the target.
Reproduce code:
---------------
#!/usr/bin/php -q
<?php
var_dump(copy("ftp://<userid>:<password>@<HostIP>/<path>/emptyfile",
"targetfile"));
?>
Expected result:
----------------
bool(true)
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44740&edit=1