mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #79008: General performance regression with PHP 7.4 on Windows
This commit is contained in:
commit
cfefba6ddd
1 changed files with 0 additions and 10 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue