Skip to content

Commit b9b49cf

Browse files
committed
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.
1 parent a2f8c78 commit b9b49cf

File tree

2 files changed

+2
-69
lines changed

2 files changed

+2
-69
lines changed

ext/standard/tests/file/lstat_stat_variation8.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ $new_stat = stat($dirname);
3939
// compare self stats
4040
var_dump( compare_self_stat($old_stat) );
4141
var_dump( compare_self_stat($new_stat) );
42-
// compare the stats
43-
$affected_members = array(3, 9, 10, 'nlink', 'mtime', 'ctime');
42+
// compare the stat
43+
$affected_members = array(9, 10, 'mtime', 'ctime');
4444
clearstatcache();
4545
var_dump(compare_stats($old_stat, $new_stat, $affected_members, "<"));
4646

ext/standard/tests/file/lstat_stat_variation9.phpt

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)