Skip to content

Commit

Permalink
Declare may_retry_reparse_point on windows only
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Oct 26, 2020
1 parent 7424bfc commit 824cbc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Zend/zend_virtual_cwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

1 comment on commit 824cbc2

@cmb69
Copy link
Contributor

@cmb69 cmb69 commented on 824cbc2 Oct 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.