Bug #70195 [Com]: Cannot upload file fit ftp_put to FTPES with require_ssl_reuse
| From: | benedict dot singer at automattic dot com | Date: | Tue, 14 Jun 2016 13:58:33 +0000 |
| Subject: | Bug #70195 [Com]: Cannot upload file fit ftp_put to FTPES with require_ssl_reuse | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-201608@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70195&edit=1
ID: 70195
Comment by: benedict dot singer at automattic dot com
Reported by: stano dot lacko at gmail dot com
Summary: Cannot upload file fit ftp_put to FTPES with
require_ssl_reuse
Status: Open
Type: Bug
Package: FTP related
Operating System: Linux
PHP Version: 5.6.11
Block user comment: N
Private report: N
New Comment:
This affects any commands that require the data connection, and thus completely breaks FTPS when
connecting to servers that require this. Many implementations now require this by default, and
server operators are understandably reluctant to disable it.
Previous Comments:
------------------------------------------------------------------------
[2015-08-05 19:23:47] stano dot lacko at gmail dot com
Description:
------------
There is not possible to upload file to FTP server with explicit SSL on FTP servers based on VSFTP,
where require_ssl_reuse is set to on.
ftp_fput(): SSL connection failed; session reuse required: see require_ssl_reuse option in
vsftpd.conf man page
Test script:
---------------
$ftp = ftp_ssl_connect($host, 21, 180);
if ($ftp && ftp_login($ftp,$login,$pass)) {
if (ftp_put($ftp, $dest_file, $file, FTP_BINARY)) {
// ok
} else {
// error
}
} else {
// file error
}
Expected result:
----------------
I want to get true from ftp_fput
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70195&edit=1