diff options
author | Sascha Schumann <sas@php.net> | 2001-06-21 11:15:38 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2001-06-21 11:15:38 +0000 |
commit | d6d59a9ee5adb09a209fca3e46625a1e51d0088b (patch) | |
tree | d00db5704cf131bf9172cb5ee6d21e38df45c369 /ext/standard/tests | |
parent | 167dcb00be847119ede7c97ba4dfaefd04c76b0b (diff) | |
download | php-git-d6d59a9ee5adb09a209fca3e46625a1e51d0088b.tar.gz |
1. st_blksize might be different for regular files and symlinks; hence
ignore differences in the twelfth element of the stat() array.
2. The 'test.file' is created by the script, thus the owner of the file
is the user id executing the script. A mode of 0654 does not grant
the owner the right to execute the file and therefore, the correct
output here is "not executable."
Diffstat (limited to 'ext/standard/tests')
-rw-r--r-- | ext/standard/tests/file/001.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/tests/file/001.phpt b/ext/standard/tests/file/001.phpt index 369e0332e1..6c1410c805 100644 --- a/ext/standard/tests/file/001.phpt +++ b/ext/standard/tests/file/001.phpt @@ -51,7 +51,7 @@ $s = stat ('test.link'); $ls = lstat ('test.link'); for ($i = 0; $i <= 11; $i++) { if ($ls[$i] != $s[$i]) { - if($i!=6) echo "test.link lstat and stat differ at element $i\n"; + if ($i != 6 && $i != 11) echo "test.link lstat and stat differ at element $i\n"; } } echo "test.file is " . filetype('test.file') . "\n"; @@ -138,7 +138,7 @@ test.file permissions are 0654 test.file size is 0 test.file is writeable test.file is readable -test.file is executable +test.file is not executable test.file is not executable test.file is a regular file test.link is a regular file |