From:             
Operating system: Ubuntu Server "natty" 32-bit
PHP version:      5.3.6
Package:          SPL related
Bug Type:         Bug
Bug description:DirectoryIterator fails to list VirtualBox shared folder 
contents

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 bug report at https://bugs.php.net/bug.php?id=55364&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55364&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55364&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55364&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55364&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55364&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55364&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55364&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55364&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55364&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55364&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55364&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55364&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55364&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55364&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55364&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55364&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55364&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55364&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55364&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55364&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55364&r=mysqlcfg

Reply via email to