diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-02-27 20:38:00 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-02-27 20:38:00 +0000 |
| commit | ea1f34e8924a0f3f3041fee99336f804d75ec665 (patch) | |
| tree | d7265e02e80a84698275f3e82b1f9e5f35571707 | |
| parent | cfd8150b309930dfa658f0ae136de63598ed0e11 (diff) | |
| download | php-git-ea1f34e8924a0f3f3041fee99336f804d75ec665.tar.gz | |
Fixed a bug that would cause filetype() to return "unknown" for
non-existent files on Win32.
| -rw-r--r-- | ext/standard/filestat.c | 5 |
1 files 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; - } } } |
