summaryrefslogtreecommitdiff
path: root/Zend/zend_virtual_cwd.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-04-07 21:12:52 +0200
committerAnatol Belski <ab@php.net>2017-04-07 21:15:37 +0200
commitad4ef13c5debaf078bc431a9e5fa54770771095b (patch)
tree9f51a1ff2800d33c3e383265d92d9bb447eaaf32 /Zend/zend_virtual_cwd.c
parentbe71f9ed69091f56df2c39b43ceaf23e04bda7de (diff)
downloadphp-git-ad4ef13c5debaf078bc431a9e5fa54770771095b.tar.gz
Switch to FindFirstFileEx with basic info level
That omits querying of short names, thus improving perf.
Diffstat (limited to 'Zend/zend_virtual_cwd.c')
-rw-r--r--Zend/zend_virtual_cwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c
index f834fa3ad1..fd19892c62 100644
--- a/Zend/zend_virtual_cwd.c
+++ b/Zend/zend_virtual_cwd.c
@@ -812,7 +812,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
if (!pathw) {
return -1;
}
- hFind = FindFirstFileW(pathw, &dataw);
+ hFind = FindFirstFileExW(pathw, FindExInfoBasic, &dataw, FindExSearchNameMatch, NULL, 0);
if (INVALID_HANDLE_VALUE == hFind) {
if (use_realpath == CWD_REALPATH) {
/* file not found */