[wp-trac] [WordPress Trac] #34976: Plug ins fail to update after WP 4.4 installed
WordPress Trac
noreply at wordpress.org
Fri Dec 11 23:00:29 UTC 2015
#34976: Plug ins fail to update after WP 4.4 installed
----------------------------+--------------------
Reporter: patdundee | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4.1
Component: Filesystem API | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+--------------------
Comment (by Otto42):
Okay, think I see the problem here. Stems from [34733].
The code changed from using ftp_rawlist() to ftp_nlist(). These execute
the LIST or NLST commands, respectively. They both list the contents of
the directory.
Historically, LIST has returned a wide variety of formats, and parsing
those programmatically can be a pain. NLST returns a somewhat more
standard format, and is intended to only give the list of filenames in a
directory. Different FTP servers will all have different implementations.
It appears that in at least some of these cases, your servers don't
support the -a argument (or perhaps any arguments) being passed to NLST.
So the normal practice of sending NLST -a to get all files (including
hidden ones that may have a period at the beginning of their name) does
not work, while LIST -a worked just fine.
Not really seeing a solution except to switch back to ftp_rawlist(). It
didn't have these problems in the past. It did have other problems, but
maybe those can be solved without ftp_nlist().
Related: #28013
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34976#comment:50>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list