#11675 closed defect (obsolete)
PHP function is_readable() fails on files in a shared folder inside the guest system
回報者: | Zerkella | 負責人: | |
---|---|---|---|
元件: | guest additions | 版本: | VirtualBox 4.2.10 |
關鍵字: | phpunit, is_readable, guest additions, shared folder | 副本: | |
Guest type: | Windows | Host type: | all |
描述
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'));"
bool(false)
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.
Please reopen if still relevant with a recent VirtualBox release.