Bug #71114 [PATCH]: FTPS Files Fail to Upload Content
Edit report at https://bugs.php.net/bug.php?id=71114&edit=1
ID: 71114
Patch added by: ab@php.net
Reported by: jimmmaaay at hotmail dot com
Summary: FTPS Files Fail to Upload Content
Status: Open
Type: Bug
Package: FTP related
Operating System: Windows 10, CentOS 6.7
PHP Version: 7.0.0
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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
Thread (7 messages)