diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-26 12:40:27 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-26 12:40:45 +0100 |
commit | 824cbc27819f3f6dd6de24e182dbb7de6273b2ab (patch) | |
tree | 7aa2c4388d35d1d6222e531148fdeb4c9ee3a17d | |
parent | 7424bfc7ac772687a681e42081ea0d8943f0d85e (diff) | |
download | php-git-824cbc27819f3f6dd6de24e182dbb7de6273b2ab.tar.gz |
Declare may_retry_reparse_point on windows only
-rw-r--r-- | Zend/zend_virtual_cwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c index b74313d3a5..220e14b675 100644 --- a/Zend/zend_virtual_cwd.c +++ b/Zend/zend_virtual_cwd.c @@ -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); |