Skip to content

Commit a7b2089

Browse files
committed
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: ensure the end path wouldn't contain double slashes
2 parents 2ae5f2d + 8e993b4 commit a7b2089

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/shared_alloc_win32.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ static char *get_mmap_base_file(void)
102102
}
103103
GetTempPath(MAXPATHLEN, windir);
104104
l = strlen(windir);
105+
if ('\\' == windir[l-1]) {
106+
l--;
107+
}
105108
snprintf(windir + l, sizeof(windir) - l - 1, "\\%s@%s@%.32s", ACCEL_FILEMAP_BASE, uname, ZCG(system_id));
106109

107110
free(uname);

0 commit comments

Comments
 (0)