Skip to content

Commit e232b21

Browse files
author
foobar
committed
There is no point doing this test. Some systems think root can always execute so this is always true.
1 parent 2d8027e commit e232b21

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ext/standard/tests/file/001.phpt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,6 @@ if (is_executable('test.file')) {
7474
} else {
7575
echo "test.file is not executable\n";
7676
}
77-
chmod ('test.file', 0644);
78-
clearstatcache();
79-
if (is_executable('test.file')) {
80-
echo "test.file is executable\n";
81-
} else {
82-
echo "test.file is not executable\n";
83-
}
8477
if (is_file('test.file')) {
8578
echo "test.file is a regular file\n";
8679
} else {
@@ -140,7 +133,6 @@ test.file size is 0
140133
test.file is writeable
141134
test.file is readable
142135
test.file is executable
143-
test.file is not executable
144136
test.file is a regular file
145137
test.link is a regular file
146138
test.link is not a directory

0 commit comments

Comments
 (0)