|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6445 problem with opendir
Submitted: 2000-08-30 13:30 UTC Modified: 2001-02-20 08:01 UTC
From: slhath at home dot com Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.1pl2 OS: Windows NT 4 sp 6a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: slhath at home dot com
New email:
PHP Version: OS:


 [2000-08-30 13:30 UTC] slhath at home dot com
I am using NT 4 sp 6a with PHP 4.01 pl2 on IIS 4.  When I use the opendir command (or the dir object) it works fine as long as I try to open drive c (c:/).  If I try to view the directory on any other drive, it fails.  The drive can be a second hard drive (d:/), a mapped drive, a cdrom, etc. Here is the code and error:

Warning: OpenDir: Invalid argument (errno 22) in
C:\Inetpub\wwwroot\trinityweb\test.php on line 12

here is the offending code:
$dir = dir("f:/");
// have also tried $dir= dir(".");

I have verified that I have full permissions to f:/.  I can also read the f:/. file from that directory ok to verify in php that the drive exists.

Please let me know as soon as this is fixed.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-06 01:35 UTC]
does this problem still exist in PHP 4.0.4?
 [2001-02-20 08:01 UTC]
No feedback, considered fixed.


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 22:01:30 2024 UTC