mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Fixed wrong realpath() result for unexistent files on win32
This commit is contained in:
parent
14fb4afd5c
commit
dfa95b718f
1 changed files with 5 additions and 0 deletions
|
@ -648,6 +648,11 @@ no_realpath:
|
|||
memcpy(&state->cwd[state->cwd_length], data.cFileName, length+1);
|
||||
ptr_length = length;
|
||||
FindClose(hFind);
|
||||
} else if (use_realpath == CWD_REALPATH) {
|
||||
free(free_path);
|
||||
CWD_STATE_FREE(state);
|
||||
*state = old_state;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue