php.net |  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
Votes:7
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
 [2002-12-04 10:34 UTC] paprocki at pomerantz dot 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.

Patches

Pull Requests

History

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] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [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: Tue Oct 15 13:01:27 2024 UTC