[wp-trac] [WordPress Trac] #63474: getchmod() can cause Fatal error

WordPress Trac noreply at wordpress.org
Wed Nov 26 21:50:18 UTC 2025


#63474: getchmod() can cause Fatal error
----------------------------+-----------------------------
 Reporter:  apermo          |       Owner:  SergeyBiryukov
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  7.0
Component:  Filesystem API  |     Version:  2.5
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61311" 61311]:
 {{{
 #!CommitTicketReference repository="" revision="61311"
 Filesystem API: Check for the correct result in some
 `WP_Filesystem_FTPext` methods.

 This avoids a PHP warning when `::dirlist()` returns `false` under certain
 conditions:

 > `Warning: Trying to access array offset on value of type bool in wp-
 admin/includes/class-wp-filesystem-ftpsockets.php on line 326`

 Follow-up to [6779], [30678], [45226].

 Props apermo, malt3, SergeyBiryukov.
 Fixes #63474.
 }}}

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


More information about the wp-trac mailing list