[wp-trac] [WordPress Trac] #35088: Custom FTP port doesn't work with FTP Sockets

WordPress Trac noreply at wordpress.org
Tue Dec 15 00:27:34 UTC 2015


#35088: Custom FTP port doesn't work with FTP Sockets
----------------------------+-----------------
 Reporter:  dd32            |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  4.5
Component:  Filesystem API  |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------
 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 [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes
 /class-ftp.php?marks=272-276#L263 class-ftp.php]

 It works correctly when using the FTP Extension.

 We need to cast the port to an int first.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35088>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list