diff options
| -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; - } } } |
