[php-src] Issue #8393: Can't understand mount point directories on Windows
| From: | ggets | Date: | Sun, 17 Apr 2022 23:00:56 +0000 |
| Subject: | [php-src] Issue #8393: Can't understand mount point directories on Windows | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241050@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8393
Author: ggets
### Description
The following code:
```php
<?php
var_dump(getcwd());
print_r(scandir("."));
```
Resulted in this output:
```
string(16) "R:\dreamflame.in"
PHP Warning: scandir(.): The system cannot find the path specifi (code: 3) in Command line code on
line 2
Warning: scandir(.): The system cannot find the path specifi (code: 3) in Command line code on line
2
PHP Warning: scandir(.): Failed to open directory: No such file or directory in Command line code
on line 2
Warning: scandir(.): Failed to open directory: No such file or directory in Command line code on
line 2
PHP Warning: scandir(): (errno 2): No such file or directory in Command line code on line 2
Warning: scandir(): (errno 2): No such file or directory in Command line code on line 2
```
But I expected directory listing instead

### PHP Version
PHP 8.0.12
### Operating System
Windows 11 build 22000