Edit report at http://bugs.php.net/bug.php?id=43817&edit=1
ID: 43817 Comment by: asankel at yahoo dot com Reported by: losd at mail dot dk Summary: opendir() fails on Windows directories with parent directory unaccessible Status: Assigned Type: Bug Package: Directory function related Operating System: win32 only - Windows Server 2003 PHP Version: 5.3.0beta1 Assigned To: pajoye Block user comment: N Private report: N New Comment: Same problem with PHP 5.3.5 on Windows 2008 with IIS 7. Workaround is to add "\." to the end of the path and then PHP doesn't attempt to access the parent directories at all. For example, change "d:\files\directory\test" to "d:\files\directory\test\." Previous Comments: ------------------------------------------------------------------------ [2010-04-08 16:36:02] dani...@php.net That makes sense. I'm on XP. Thanks. If you need quicker feedback, shoot me an email or assign the bug to me. ------------------------------------------------------------------------ [2010-04-05 01:59:43] paj...@php.net Nothing has changed in 5.2/3.x about that. The problem may come from the tsrm's real path which tries to access all parent directories to cache them. I have to investigate why it fails on XP (and on on 2003 for your right?) but not on more recent versions. ------------------------------------------------------------------------ [2010-04-05 01:45:01] dani...@php.net I just installed 5.3.2. The regression has gotten worse. Now the "Subdir/.." workaround fails too: Warning: opendir(C:/Dir/Subdir/..,C:/Dir/Subdir/..) [function.opendir]: Access is denied. (code: 5)... ------------------------------------------------------------------------ [2010-03-29 00:27:55] paj...@php.net Please try with 5.3.2 ------------------------------------------------------------------------ [2010-03-29 00:12:25] dani...@php.net Still exists for me under the official release of PHP 5.3.0 on an XP SP3 machine. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=43817 -- Edit this bug report at http://bugs.php.net/bug.php?id=43817&edit=1