mirror of
https://github.com/php/php-src.git
synced 2025-01-20 18:53:37 +08:00
- get the right error on windows
This commit is contained in:
parent
dd6ecfc01e
commit
acc6609a27
@ -866,6 +866,10 @@ static php_stream *php_plain_files_dir_opener(php_stream_wrapper *wrapper, char
|
||||
dir = VCWD_OPENDIR(path);
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
if (!dir) {
|
||||
php_win32_docref2_from_error(GetLastError(), path, path TSRMLS_CC);
|
||||
}
|
||||
|
||||
if (dir && dir->finished) {
|
||||
closedir(dir);
|
||||
dir = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user