From: Ilia Alshanetsky Date: Thu, 27 Feb 2003 20:38:00 +0000 (+0000) Subject: Fixed a bug that would cause filetype() to return "unknown" for X-Git-Tag: RELEASE_0_5~710 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea1f34e8924a0f3f3041fee99336f804d75ec665;p=php Fixed a bug that would cause filetype() to return "unknown" for non-existent files on Win32. --- 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; - } } }