Edit report at https://bugs.php.net/bug.php?id=55364&edit=1
ID: 55364 Comment by: vbox-dev at paul-mitchell dot me dot uk Reported by: bob at synapsestudios dot com Summary: DirectoryIterator fails to list VirtualBox shared folder contents Status: Open Type: Bug Package: SPL related Operating System: Ubuntu Server "natty" 32-bit PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: Please upgrade to VirtualBox 4.1.2 + Guest Additions (released 2011-08-15) which has a fix for this issue. Previous Comments: ------------------------------------------------------------------------ [2011-08-04 18:15:09] bob at synapsestudios dot com Description: ------------ I recently updated to 5.3.6 on a VirtualBox VM that uses a shared directory from my Windows 7 (64-bit) machine for project files. I've since determined that DirectoryIterator fails to locate any files in the shared directory. Upon further inspection, it works fine for any other directory on the VM. I've also confirmed that the same issue does not happen when going from a Linux machine to the VM leading me to believe that this is NTFS-related. The last known working version was 5.3.3. Version 5.3.5 had the same issues as the current version and I did not test on 5.3.4. Googling found another person with the same problem: http://www.searbe.co.uk/phpunit-and-virtualbox-uncaught-exception-php Test script: --------------- <h1>DirectoryIterator Test on VirtualBox Shared Folders</h1> <h2>Passing</h2> <?php // Shows files in a non-shared folder directory, change this to a real directory $pass = new DirectoryIterator('/home/develop/web/'); foreach ($pass as $file) { var_dump($file->getFilename()); } ?> <hr/> <h2>Failing</h2> <?php // Shows nothing in a shared folder directory, change this to a real directory $fail = new DirectoryIterator('/home/develop/web/projects/'); foreach ($fail as $file) { var_dump($file->getFilename()); } Expected result: ---------------- List all of the files in the shared folder directory Actual result: -------------- No files are found ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55364&edit=1