Fixed a bug that would cause filetype() to return "unknown" for

non-existent files on Win32.
This commit is contained in:
Ilia Alshanetsky 2003-02-27 20:38:00 +00:00
parent cfd8150b30
commit ea1f34e892

View File

@ -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;
}
}
}