[wp-trac] [WordPress Trac] #62718: Automatic updater of WordPress always fails if FS_METHOD is ftpext since 6.6 with PHP 8.0+

WordPress Trac noreply at wordpress.org
Fri Dec 20 04:30:40 UTC 2024


#62718: Automatic updater of WordPress always fails if FS_METHOD is ftpext since
6.6 with PHP 8.0+
--------------------------+------------------------------
 Reporter:  hideishi      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  6.6
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by hideishi):

 I would like to highlight that **WP_Filesystem() SHOULD NEVER BE CALLED
 WITHOUT CREDENTIALS** unless you are 100% sure that FS_METHOD is 'direct'
 because since 8.0 PHP restriced type checks that throws fatal error if
 invalid type of argument is passed in ftpext and ftpsocket functions.
 I haven't tried with ssh2 but I guess it is the same for it as well.

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


More information about the wp-trac mailing list