diff options
Diffstat (limited to 'ext/standard/tests/file/001-win32.phpt')
-rw-r--r-- | ext/standard/tests/file/001-win32.phpt | 35 |
1 files changed, 4 insertions, 31 deletions
diff --git a/ext/standard/tests/file/001-win32.phpt b/ext/standard/tests/file/001-win32.phpt index d6709e8d04..ee520940e4 100644 --- a/ext/standard/tests/file/001-win32.phpt +++ b/ext/standard/tests/file/001-win32.phpt @@ -1,5 +1,7 @@ --TEST-- File type functions +--CREDITS-- +Dave Kelsey <d_kelsey@uk.ibm.com> --SKIPIF-- <?php if (substr(PHP_OS, 0, 3) != 'WIN') { @@ -10,7 +12,6 @@ if (substr(PHP_OS, 0, 3) != 'WIN') { <?php chdir(dirname(__FILE__)); @unlink('test.file'); -@unlink('test.link'); if (file_exists('test.file')) { echo "test.file exists\n"; } else { @@ -23,22 +24,11 @@ if (file_exists('test.file')) { } else { echo "test.file does not exist\n"; } -sleep (2); -if (file_exists('test.link')) { - echo "test.link exists\n"; -} else { - echo "test.link does not exist\n"; -} if (is_link('test.file')) { echo "test.file is a symlink\n"; } else { echo "test.file is not a symlink\n"; } -if (is_link('test.link')) { - echo "test.link is a symlink\n"; -} else { - echo "test.link is not a symlink\n"; -} if (file_exists('test.file')) { echo "test.file exists\n"; } else { @@ -52,7 +42,6 @@ for ($i = 0; $i <= 12; $i++) { } } echo "test.file is " . filetype('test.file') . "\n"; -echo "test.link is <" . filetype('test.link') . ">\n"; printf ("test.file permissions are 0%o\n", 0777 & fileperms('test.file')); echo "test.file size is " . filesize('test.file') . "\n"; if (is_writeable('test.file')) { @@ -70,16 +59,6 @@ if (is_file('test.file')) { } else { echo "test.file is not a regular file\n"; } -if (is_file('test.link')) { - echo "test.link is a regular file\n"; -} else { - echo "test.link is not a regular file\n"; -} -if (is_dir('test.link')) { - echo "test.link is a directory\n"; -} else { - echo "test.link is not a directory\n"; -} if (is_dir('../file')) { echo "../file is a directory\n"; } else { @@ -103,25 +82,19 @@ if (file_exists('test.file')) { echo "test.file does not exist\n"; } ?> ---EXPECTF-- +--EXPECT-- test.file does not exist test.file exists -test.link does not exist test.file is not a symlink -test.link is not a symlink test.file exists test.file is file - -Warning: filetype(): Lstat failed for test.link in %s -test.link is <> test.file permissions are 0666 test.file size is 0 test.file is writeable test.file is readable test.file is a regular file -test.link is not a regular file -test.link is not a directory ../file is a directory test.file is not a directory test.file does not exist test.file does not exist + |