Skip to content

Commit 824cbc2

Browse files
committed
Declare may_retry_reparse_point on windows only
1 parent 7424bfc commit 824cbc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zend/zend_virtual_cwd.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -741,12 +741,13 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(void)
741741
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) /* {{{ */
742742
{
743743
size_t i, j;
744-
int directory = 0, save, may_retry_reparse_point;
744+
int directory = 0, save;
745745
#ifdef ZEND_WIN32
746746
WIN32_FIND_DATAW dataw;
747747
HANDLE hFind = INVALID_HANDLE_VALUE;
748748
ALLOCA_FLAG(use_heap_large)
749749
wchar_t *pathw = NULL;
750+
int may_retry_reparse_point;
750751
#define FREE_PATHW() \
751752
do { free(pathw); } while(0);
752753

0 commit comments

Comments
 (0)