Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79008: General performance regression with PHP 7.4 on Windows
This commit is contained in:
Christoph M. Becker 2019-12-20 16:29:39 +01:00
commit cfefba6ddd

View file

@ -865,16 +865,6 @@ static int php_win32_ioutil_fstat_int(HANDLE h, php_win32_ioutil_stat_t *buf, co
data = !dp ? &d : dp;
if (!pathw) {
pathw_len = GetFinalPathNameByHandleW(h, mypath, MAXPATHLEN, VOLUME_NAME_DOS);
if (pathw_len >= MAXPATHLEN || pathw_len == 0) {
pathw_len = 0;
pathw = NULL;
} else {
pathw = mypath;
}
}
if(!GetFileInformationByHandle(h, data)) {
if (INVALID_HANDLE_VALUE != h) {
/* Perhaps it's a fileless stream like stdio, reuse the normal stat info. */