VirtualBox

Opened 11 years ago

Closed 8 years ago

#11675 closed defect (obsolete)

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

Reported by: Zerkella Owned by:
Component: guest additions Version: VirtualBox 4.2.10
Keywords: phpunit, is_readable, guest additions, shared folder Cc:
Guest type: Windows Host type: all

Description

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.

Change History (1)

comment:1 by aeichner, 8 years ago

Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use