com php-src: Merge branch 'PHP-7.1' into PHP-7.2: win32/readdir.c

From: Date: Thu, 12 Jul 2018 17:57:08 +0000
Subject: com php-src: Merge branch 'PHP-7.1' into PHP-7.2: win32/readdir.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102539@lists.php.net to get a copy of this message
Commit: f28aeaee057dcf4593bae3572c6fc8febaff6d72 Author: Anatol Belski <ab@php.net> Thu, 12 Jul 2018 19:57:08 +0200 Parents: 77ced46dea846615385eb63abe2c5d386df4e78e 99fe18503ad61472ef8f4009a9234bfc2571d027 Branches: PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f28aeaee057dcf4593bae3572c6fc8febaff6d72 Log: Merge branch 'PHP-7.1' into PHP-7.2 * PHP-7.1: Fixed RecursiveDirectoryIterator with long path or with edge case length Changed paths: MM win32/readdir.c Diff: diff --cc win32/readdir.c index 146ab54,07ae3da..18e87d3 --- a/win32/readdir.c +++ b/win32/readdir.c @@@ -195,9 -232,9 +224,9 @@@ int rewinddir(DIR *dp if (index >= 0 && (filespecw[index] == L'/' || (filespecw[index] == L'\\' && index == 0))) filespecw[index] = L'\0'; - wcscat(filespecw, L"/*"); + wcscat(filespecw, L"\\*"); - if ((handle = FindFirstFileW(filespecw, &(dp->fileinfo))) == INVALID_HANDLE_VALUE) { + if ((handle = FindFirstFileExW(filespecw, FindExInfoBasic, &(dp->fileinfo), FindExSearchNameMatch, NULL, FIND_FIRST_EX_LARGE_FETCH)) == INVALID_HANDLE_VALUE) { dp->finished = 1; }

« previous php.cvs (#102539) next »