Ticket #11675 (new defect)
Opened 11 months ago
PHP function is_readable() fails on files in a shared folder inside the guest system
|Reported by:||Zerkella||Owned by:|
|Version:||VirtualBox 4.2.10||Keywords:||phpunit, is_readable, guest additions, shared folder|
Inside the VirtualBox guest system the PHP core function is_readable() always reports FALSE for any file, located inside a shared folder that is mounted from host system via Guest Additions.
The function is widely used in PHP applications, so running them inside of a shared folder is impossible.
This can be tested by installing PHP and executing the following commands, while inside a shared folder:
echo text > test.txt
php -r "var_dump(is_readable('test.txt'));"
Same code works fine inside any other folder in the guest system. Or inside a folder, mounted as a usual network share.
Also, while the file is mistakenly reported as not readable, PHP still can read it via any of its file utility functions, e.g. via "file_get_contents('text.txt');"
I used VirtualBox 4.2.10, Guest Addtions 4.2.10, PHP 5.3.