Bug #70195 [Opn->Csd]: Cannot upload file using ftp_put to FTPES with require_ssl_reuse

From: Date: Sat, 13 Aug 2016 19:47:34 +0000
Subject: Bug #70195 [Opn->Csd]: Cannot upload file using ftp_put to FTPES with require_ssl_reuse
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203245@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 Updated by: nikic@php.net Reported by: stano dot lacko at gmail dot com Summary: Cannot upload file using ftp_put to FTPES with require_ssl_reuse -Status: Open +Status: Closed Type: Bug Package: FTP related Operating System: Linux PHP Version: 5.6.11 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: Fixed by https://github.com/php/php-src/commit/dfadc5a427b548cab2b7c037c05f65684e08a248. Previous Comments: ------------------------------------------------------------------------ [2016-06-14 13:58:32] benedict dot singer at automattic dot com 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#203245) next »