mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
Fixed a bug that would cause filetype() to return "unknown" for
non-existent files on Win32.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user