diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | win32/ioutil.c | 10 |
2 files changed, 2 insertions, 10 deletions
@@ -12,6 +12,8 @@ PHP NEWS "static"). (Nikita) . Fixed bug #78999 (Cycle leak when using function result as temporary). (Dmitry) + . Fixed bug #79008 (General performance regression with PHP 7.4 on Windows). + (cmb) - Fileinfo: . Fixed bug #74170 (locale information change after mime_content_type). diff --git a/win32/ioutil.c b/win32/ioutil.c index ce4fc9b65c..63645314dd 100644 --- a/win32/ioutil.c +++ b/win32/ioutil.c @@ -867,16 +867,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. */ |