Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#35088 closed defect (bug) (fixed)

Custom FTP port doesn't work with FTP Sockets

Reported by: dd32's profile dd32 Owned by: dd32's profile dd32
Milestone: 4.5 Priority: normal
Severity: normal Version:
Component: Filesystem API Keywords:
Focuses: Cc:


It seems that PemFTP requires that a (long) be passed as the port, currently when a custom port is specified, we pass it as a string which is causing PemFTP to abort connecting.

See class-ftp.php

It works correctly when using the FTP Extension.

We need to cast the port to an int first.

Change History (1)

#1 @dd32
8 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 35942:

Filesystem API: Cast the port to an int in the FTPSockets class. PemFTP requires that the port be specified as an integer, not a numeric string.
Fixes #35088

Note: See TracTickets for help on using tickets.