#36088 [Opn->Bgs]: is_dir fails, if trying to access a directory on another drive
| From: | tony2001@php.net | Date: | Thu, 19 Jan 2006 15:32:51 +0000 |
| Subject: | #36088 [Opn->Bgs]: is_dir fails, if trying to access a directory on another drive | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92220@lists.php.net to get a copy of this message | ||
ID: 36088
Updated by: tony2001@php.net
Reported By: gzimmermann at t-systems dot com
-Status: Open
+Status: Bogus
Bug Type: Directory function related
Operating System: Windows 2003 Server
PHP Version: 5.1.2
New Comment:
Duplicate of bug #35691.
Previous Comments:
------------------------------------------------------------------------
[2006-01-19 16:29:11] gzimmermann at t-systems dot com
Description:
------------
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:
---------------
erroneous:
<?php
if (is_dir('d:/directory'))
{
echo 'a';
}
else
echo 'b';
?>
working:
<?php
if (opendir('d:/directory'))
{
echo 'a';
closedir($dh);
}
else
echo 'b';
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36088&edit=1