From ea1f34e8924a0f3f3041fee99336f804d75ec665 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 27 Feb 2003 20:38:00 +0000 Subject: [PATCH] Fixed a bug that would cause filetype() to return "unknown" for non-existent files on Win32. --- ext/standard/filestat.c | 5 +++-- 1 file 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; - } } } -- 2.50.1