[wp-trac] [WordPress Trac] #63201: FTPext Stub

WordPress Trac noreply at wordpress.org
Thu Aug 28 18:42:34 UTC 2025


#63201: FTPext Stub
------------------------------------+---------------------
 Reporter:  SirLouen                |       Owner:  (none)
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  6.9
Component:  Filesystem API          |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:  docs
------------------------------------+---------------------

Comment (by kalpeshh):

 https://www.php.net/manual/en/function.ftp-ssl-connect.php
 {{{
 Returns an FTP\Connection instance on success, or false on failure.
 }}}

 `ftp_ssl_connect` returns false on ftp connection failure so $link can
 also be `false`.

 To handle that case we can think of adding
 {{{
 /** @var FTP\Connection|resource|false */
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63201#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list