mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
Fixed a bug that would cause filetype() to return "unknown" for
non-existent files on Win32.
This commit is contained in:
parent
cfd8150b30
commit
ea1f34e892
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user