#20813 [Opn]: opendir() returns errno22 with UNC path
| From: | paprocki at pomerantz dot com | Date: | Wed, 04 Dec 2002 19:12:41 +0000 |
| Subject: | #20813 [Opn]: opendir() returns errno22 with UNC path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26648@lists.php.net to get a copy of this message | ||
ID: 20813
User updated by: paprocki@pomerantz.com
Reported By: paprocki@pomerantz.com
Status: Open
Bug Type: Directory function related
Operating System: NT4SP6 IIS
PHP Version: 4.2.3
New Comment:
Just installed fresh 4.2.3 ISAPI on Win2000 and still produces same
error. Does this have something to do with the target UNC?
Previous Comments:
------------------------------------------------------------------------
[2002-12-04 10:44:27] paprocki@pomerantz.com
Bug #9354 also produces same result
Bug #6445 is the same problem
Bug #12699 is the same problem
Bug #12524 is the same problem
Is this only NT4???
------------------------------------------------------------------------
[2002-12-04 10:34:08] paprocki@pomerantz.com
if ($handle = opendir("//server/share")) {
while ($file = readdir($handle)) {
echo "$file<br>";
}
closedir($handle);
}
produces:
Warning: OpenDir: Invalid argument (errno 22)
I have tried setting the UNC share permissions to both Everyone - Read
and Everyone - Full Control and it does not matter.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20813&edit=1