Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  ensure the end path wouldn't contain double slashes
This commit is contained in:
Anatol Belski 2017-01-13 16:54:10 +01:00
commit a7b20894e5

View File

@ -102,6 +102,9 @@ static char *get_mmap_base_file(void)
}
GetTempPath(MAXPATHLEN, windir);
l = strlen(windir);
if ('\\' == windir[l-1]) {
l--;
}
snprintf(windir + l, sizeof(windir) - l - 1, "\\%s@%s@%.32s", ACCEL_FILEMAP_BASE, uname, ZCG(system_id));
free(uname);