php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71114 FTPS Files Fail to Upload Content
Submitted: 2015-12-14 09:06 UTC Modified: 2016-01-10 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jimmmaaay at hotmail dot com Assigned:
Status: No Feedback Package: FTP related
PHP Version: 7.0.0 OS: Windows 10, CentOS 6.7
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jimmmaaay at hotmail dot com
New email:
PHP Version: OS:

 

 [2015-12-14 09:06 UTC] jimmmaaay at hotmail dot com
Description:
------------
FTPS file uploads work but do not transfer any data. The file get uploaded with the correct name but the file is empty. A warning is generated:

Warning: ftp_fput(): SSL read failed
Warning: ftp_fput(): Accepted data connection

Also ftp_mkdir works but ftp_nlist does not work and returns false.

The server supports explicit FTPS and it works using a normal FTP client connecting under FTP SSL/TLS Explicit. The same script works under ftp_connect instead of ftp_ssl_connect.

Server is CentOS 6.7 with Pure-FTPD 1.0.37

Test script:
---------------
$ftp=ftp_ssl_connect($host,$port);
ftp_login($ftp,$user,$password);
ftp_fput($ftp,$remote,$local_file,FTP_ASCII);//returns false and warning here


Patches

bug71114_0 (last revision 2015-12-14 14:22 UTC by ab@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-14 14:22 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: bug71114_0
Revision:   1450102958
URL:        https://bugs.php.net/patch-display.php?bug=71114&patch=bug71114_0&revision=1450102958
 [2015-12-14 14:24 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2015-12-14 14:24 UTC] ab@php.net
Thanks for the report. While I have no environment to test currently, here is just a blind shot. Could you please check the attached bug71114_0.patch with the improved error handling. Otherwise, if you could provide a test login on your server for further investigation, it'd be great.

Thanks.
 [2015-12-27 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2015-12-27 23:11 UTC] yohgaki@php.net
-Status: No Feedback +Status: Feedback
 [2016-01-10 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2016-01-21 21:09 UTC] jimmmaaay at hotmail dot com
Sorry, I never got email notifications for this. I found the issue was because PHP's implementation of FTPS is not compatible with current standards. In my case my client is Pure-FTPD (latest) and I needed to turn on "Broken Clients Compatibility" which "will ignore some protocol standards in order to improve compatibility with buggy FTP clients"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC