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

From: Date: Mon, 14 Dec 2015 14:24:39 +0000
Subject: Bug #71114 [Opn->Fbk]: FTPS Files Fail to Upload Content
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197866@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71114&edit=1 ID: 71114 Updated by: ab@php.net Reported by: jimmmaaay at hotmail dot com Summary: FTPS Files Fail to Upload Content -Status: Open +Status: Feedback 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: 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. Previous Comments: ------------------------------------------------------------------------ [2015-12-14 14:22:38] 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 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

« previous php.bugs (#197866) next »