php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44740 ftp empty file copy returns error
Submitted: 2008-04-16 10:21 UTC Modified: 2008-07-20 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: luigi dot ghirardi at calltrade dot it Assigned:
Status: No Feedback Package: FTP related
PHP Version: 5.2.5 OS: CentOS 5.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: luigi dot ghirardi at calltrade dot it
New email:
PHP Version: OS:

 

 [2008-04-16 10:21 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Feb 29 10:01:27 2020 UTC