summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-02-27 20:38:00 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-02-27 20:38:00 +0000
commitea1f34e8924a0f3f3041fee99336f804d75ec665 (patch)
treed7265e02e80a84698275f3e82b1f9e5f35571707
parentcfd8150b309930dfa658f0ae136de63598ed0e11 (diff)
downloadphp-git-ea1f34e8924a0f3f3041fee99336f804d75ec665.tar.gz
Fixed a bug that would cause filetype() to return "unknown" for
non-existent files on Win32.
-rw-r--r--ext/standard/filestat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c
index 8321ceb41a..3dd5ab5bdc 100644
--- a/ext/standard/filestat.c
+++ b/ext/standard/filestat.c
@@ -608,9 +608,10 @@ static void php_stat(const char *filename, php_stat_len filename_length, int typ
}
efree(BG(CurrentStatFile));
BG(CurrentStatFile) = NULL;
- if (!IS_LINK_OPERATION(type)) { /* Don't require success for link operation */
+#if HAVE_SYMLINK
+ if (!IS_LINK_OPERATION(type)) /* Don't require success for link operation */
+#endif
RETURN_FALSE;
- }
}
}