Ticket #11675 (closed defect: obsolete)

Opened 4 years ago

Last modified 11 months ago

PHP function is_readable() fails on files in a shared folder inside the guest system

Reported by: Zerkella Owned by:
Priority: major Component: guest additions
Version: VirtualBox 4.2.10 Keywords: phpunit, is_readable, guest additions, shared folder
Cc: 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'));"


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.

Change History

comment:1 Changed 11 months ago by aeichner

  • Status changed from new to closed
  • Resolution set to obsolete

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use