Bug #71114 [NEW]: FTPS Files Fail to Upload Content
From: jimmmaaay at hotmail dot com
Operating system: Windows 10, CentOS 6.7
PHP version: 7.0.0
Package: FTP related
Bug Type: Bug
Bug description:FTPS Files Fail to Upload Content
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 bug report at https://bugs.php.net/bug.php?id=71114&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71114&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71114&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71114&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71114&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71114&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71114&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71114&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71114&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71114&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71114&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71114&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71114&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71114&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71114&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71114&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71114&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71114&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71114&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71114&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71114&r=mysqlcfg
Thread (7 messages)
- jimmmaaay at hotmail dot com