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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC