[php-src] Issue #13783: is_file() returns false for files on locally mounted samba volume
| From: | procodix | Date: | Fri, 22 Mar 2024 08:35:33 +0000 |
| Subject: | [php-src] Issue #13783: is_file() returns false for files on locally mounted samba volume | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246634@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13783
Author: procodix
### Description
The following code:
```php
is_file('/Volumes/Test/test.txt');
<?php
```
Resulted in this output:
```
false
```
But I expected this output instead:
```
true
```
The file system object is found by readdir. The Volume is mounted by macOS internal Samba client.
Thus it appears as under /Volumes/***. All permissions are correct and sufficient, therefore it is
being seen. But once checking its type (dir/file) with is_file(), the result says false when it
should return true.
### PHP Version
PHP 8.3
### Operating System
macOS