Edit report at https://bugs.php.net/bug.php?id=43817&edit=1
ID: 43817
Comment by: y dot korotia at hotmail 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:
are you going to fix it for Windows or not?
I've wasted about 4 hours because of this bug!
installed ZendServer with 5.3x
To access folder I must give access to its parent. what a f..?
Previous Comments:
------------------------------------------------------------------------
[2012-07-18 06:53:55] denis at morozov dot tk
W2008R2x64+PHP5.3.8.: have got the same error+
In my case is_dir() is not affected,
but opendir() fails.
Directory is in the root of system disk, directories inside wwwroot are not
affected.
If started from CMD with Admin - no error, error comes only in case of IUSR-IIS
calls.
IN:
$dir="E:\\temp\\";
$dh=opendir($dir);
OUT:
PHP Warning: opendir(E:\temp\,E:\temp\) [<a
href='function.opendir'>function.opendir</a>]: ÐÑказано в
доÑÑÑпе. (code: 5) in E:\inetpub\dm\iPrinter\dir.php
------------------------------------------------------------------------
[2011-02-01 22:42:03] asankel at yahoo dot com
UPDATE: This problem does not occur with php-5.2.17-nts-Win32-VC6-x86 so you
can use it as a workaround.
------------------------------------------------------------------------
[2011-01-29 00:22:42] asankel at yahoo dot com
Never mind on the workaround. Was related to some fastcgi caching. If you are
running fastcgi the parent directory check is only done the first time. If it
has access the first time it won't check the parent directory for further
accesses.
------------------------------------------------------------------------
[2011-01-29 00:11:37] asankel at yahoo dot com
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\."
------------------------------------------------------------------------
[2010-04-08 16:36:02] [email protected]
That makes sense. I'm on XP. Thanks. If you need quicker feedback, shoot me
an email or assign the bug to me.
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=43817
--
Edit this bug report at https://bugs.php.net/bug.php?id=43817&edit=1