[wp-trac] [WordPress Trac] #54582: Problem with deleting old files at the end of a core update when the filesystem is case-insensitive
WordPress Trac
noreply at wordpress.org
Mon Dec 6 12:38:11 UTC 2021
#54582: Problem with deleting old files at the end of a core update when the
filesystem is case-insensitive
---------------------------------------+---------------------
Reporter: pbiron | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: 5.9
Component: Upgrade/Install | Version:
Severity: major | Resolution:
Keywords: needs-patch needs-testing | Focuses:
---------------------------------------+---------------------
Comment (by schlessera):
As far as I can tell from documentation, retrieving the `fileinode` will
always return `0` for all files on Windows for versions of PHP below 7.4.
From https://www.php.net/manual/en/function.fileinode.php:
> As documented in
https://www.php.net/manual/en/function.stat.php#refsect1-function.stat-
returnvalues:
> On Windows, as of PHP 7.4.0, this is the identifier associated with the
file, which is a 64-bit unsigned integer, so may overflow. Previously, it
was always 0.
>
> It appears that fileinode shares the same underlying implementation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54582#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list