]> granicus.if.org Git - php/commit
Don't check directory nlink in stat tests
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 30 Mar 2020 08:52:25 +0000 (10:52 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 30 Mar 2020 08:54:03 +0000 (10:54 +0200)
commitb9b49cfb7b88e0d95d91ea82b75b2b19ca88331a
treefe10d76cadb87c10caf8d41f7611003f8c4a36d5
parenta2f8c78183a5911bc5a923956ff531b6d27cff2a
Don't check directory nlink in stat tests

It seems like on many filesystems nlink for directories is the
number of subdirectories (plus two, due to . and ..). However,
this is not a POSIX requirement, and some filesystems don't
implement it this way. This seems to be the case for whatever is
used on the Travis AArch64 builders now.
ext/standard/tests/file/lstat_stat_variation8.phpt
ext/standard/tests/file/lstat_stat_variation9.phpt [deleted file]