|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36088 is_dir fails, if trying to access a directory on another drive
Submitted: 2006-01-19 16:29 UTC Modified: 2006-01-19 16:32 UTC
From: gzimmermann at t-systems dot com Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 5.1.2 OS: Windows 2003 Server
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: gzimmermann at t-systems dot com
New email:
PHP Version: OS:


 [2006-01-19 16:29 UTC] gzimmermann at t-systems dot com
A Script running in apache 2.0.55 (installed on drive c:) is trying to check for the existence of a directory; this is located on a raid-system, therefore outside of the webroot.

Checking for the existence of the directory with the code below using is_dir always fails, while using opendir in the manner shown works correctly. 

The same 'is_dir'-script run from the commandline works, so a connection to apache seems to exist, but neither php nor apache have any restrictions in accessing the filesytem(s).

Reproduce code:
if (is_dir('d:/directory'))
    echo 'a';
    echo 'b';

if (opendir('d:/directory'))
    echo 'a';
    echo 'b';


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-19 16:32 UTC]
Duplicate of bug #35691.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Sep 26 08:01:24 2023 UTC