Bug #71114 [Fbk->NoF]: FTPS Files Fail to Upload Content

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=71114&edit=1

 ID:               71114
 Updated by:       [email protected]
 Reported by:      jimmmaaay at hotmail dot com
 Summary:          FTPS Files Fail to Upload Content
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          FTP related
 Operating System: Windows 10, CentOS 6.7
 PHP Version:      7.0.0
 Private report:   N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2015-12-14 14:24:39] [email protected]

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-14 14:22:38] [email protected]

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 09:06:04] 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



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=71114&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.