|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20813 opendir() returns errno22 with UNC path
Submitted: 2002-12-04 10:34 UTC Modified: 2002-12-20 01:00 UTC
Avg. Score:4.4 ± 0.7
Reproduced:7 of 7 (100.0%)
Same Version:4 (57.1%)
Same OS:5 (71.4%)
From: paprocki at pomerantz dot com Assigned:
Status: No Feedback Package: Directory function related
PHP Version: 4.2.3 OS: NT4SP6 IIS
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: paprocki at pomerantz dot com
New email:
PHP Version: OS:


 [2002-12-04 10:34 UTC] paprocki at pomerantz dot com
if ($handle = opendir("//server/share")) {	
  while ($file = readdir($handle)) {
    echo "$file<br>";


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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-04 10:44 UTC] paprocki at pomerantz dot 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 13:12 UTC] paprocki at pomerantz dot com
Just installed fresh 4.2.3 ISAPI on Win2000 and still produces same error. Does this have something to do with the target UNC?
 [2002-12-04 17:53 UTC]
Please try using this CVS snapshot:
For Windows:
 [2002-12-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC