Skip to content

Commit cfefba6

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #79008: General performance regression with PHP 7.4 on Windows
2 parents 269f44f + 6ec4056 commit cfefba6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

win32/ioutil.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -865,16 +865,6 @@ static int php_win32_ioutil_fstat_int(HANDLE h, php_win32_ioutil_stat_t *buf, co
865865

866866
data = !dp ? &d : dp;
867867

868-
if (!pathw) {
869-
pathw_len = GetFinalPathNameByHandleW(h, mypath, MAXPATHLEN, VOLUME_NAME_DOS);
870-
if (pathw_len >= MAXPATHLEN || pathw_len == 0) {
871-
pathw_len = 0;
872-
pathw = NULL;
873-
} else {
874-
pathw = mypath;
875-
}
876-
}
877-
878868
if(!GetFileInformationByHandle(h, data)) {
879869
if (INVALID_HANDLE_VALUE != h) {
880870
/* Perhaps it's a fileless stream like stdio, reuse the normal stat info. */

0 commit comments

Comments
 (0)