]> granicus.if.org Git - php/commitdiff
Declare may_retry_reparse_point on windows only
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 26 Oct 2020 11:40:27 +0000 (12:40 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 26 Oct 2020 11:40:45 +0000 (12:40 +0100)
Zend/zend_virtual_cwd.c

index b74313d3a576cb8747b248d97ecc213cb9713af5..220e14b6758ac005aba191805fb016b7a4414a67 100644 (file)
@@ -741,12 +741,13 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(void)
 static size_t tsrm_realpath_r(char *path, size_t start, size_t len, int *ll, time_t *t, int use_realpath, int is_dir, int *link_is_dir) /* {{{ */
 {
        size_t i, j;
-       int directory = 0, save, may_retry_reparse_point;
+       int directory = 0, save;
 #ifdef ZEND_WIN32
        WIN32_FIND_DATAW dataw;
        HANDLE hFind = INVALID_HANDLE_VALUE;
        ALLOCA_FLAG(use_heap_large)
        wchar_t *pathw = NULL;
+       int may_retry_reparse_point;
 #define FREE_PATHW() \
        do { free(pathw); } while(0);