[wp-trac] [WordPress Trac] #50373: Notice: Trying to access array offset on value of type bool in /wp-admin/includes/class-wp-filesystem-direct.php on line 260
WordPress Trac
noreply at wordpress.org
Fri Jun 12 12:33:27 UTC 2020
#50373: Notice: Trying to access array offset on value of type bool in /wp-
admin/includes/class-wp-filesystem-direct.php on line 260
----------------------------+-----------------------------
Reporter: logig | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: Filesystem API | Version: 5.4.2
Severity: normal | Resolution: fixed
Keywords: needs-patch | Focuses:
----------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"48031" 48031]:
{{{
#!CommitTicketReference repository="" revision="48031"
Filesystem API: Avoid a PHP notice in `WP_Filesystem_Direct::owner()` and
`::group()` methods and their `WP_Filesystem_SSH2` counterparts.
Although not officially documented in the PHP manual, `posix_getpwuid()`
and `posix_getgrgid()` can return `false` in some circumstances.
Props logig.
Fixes #50373.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50373#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list