]> granicus.if.org Git - php/commitdiff
Fixed a bug that would cause filetype() to return "unknown" for
authorIlia Alshanetsky <iliaa@php.net>
Thu, 27 Feb 2003 20:38:00 +0000 (20:38 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 27 Feb 2003 20:38:00 +0000 (20:38 +0000)
non-existent files on Win32.

ext/standard/filestat.c

index 8321ceb41a77fd6a2bf302325bae842903ac7ec1..3dd5ab5bdc55e9c0430469d8f390a74e2f3c5d09 100644 (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;
-                       }
                }
        }