#26570 [Bgs]: is_dir fails for UNC filepaths.

From: Date: Wed, 10 Dec 2003 18:42:54 +0000
Subject: #26570 [Bgs]: is_dir fails for UNC filepaths.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-51940@lists.php.net to get a copy of this message
ID: 26570 User updated by: kris at mha dot ca Reported By: kris at mha dot ca Status: Bogus Bug Type: Directory function related Operating System: Windows 2000 and NT 4 CGI PHP Version: 4.3.4 New Comment: Although bug #24795 may be a result of the same problem (I didn't find it BTW when I searched the bug database, perhaps because its status is BOGUS), it does not explictly describe that the only file operation that appears to fail with UNC filepaths is is_dir. opendir works, mkdir works, chdir works, stat works, etc. Also he states that he has a problem if he maps the drive to a letter, this does not fail in my case -- mapped drives work fine. So I see this as a different bug. BTW I have verified this bug accross 4 versions of windows (NT 4, NT4 Server, 2000 Professional, 2000 Server) and 4 versions of PHP (4.3.4, 4.3.2, 4.2.2). It is not a show stopper, since there is a workaround, but it is not a BOGUS bug. Previous Comments: ------------------------------------------------------------------------ [2003-12-10 09:12:26] sniper@php.net Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. See bug #24795 ------------------------------------------------------------------------ [2003-12-09 21:07:26] kris at mha dot ca Description: ------------ is_dir fails on UNC filepaths on windows. It is not a permissions problem since every other command works, and there is a workaround (using opendir). Reproduce code: --------------- $net_dir = '//goose/test_share/'; $net_file = $net_dir."test.txt"; if (is_dir($net_dir)) { echo " is_dir successful.\n"; } else { echo " is_dir failed.\n"; } if ($dh = opendir($net_dir)) { echo " opendir successfull.\n"; } else { echo " opendir failed.\n"; } Expected result: ---------------- is_dir successfull. opendir successfull. Actual result: -------------- is_dir failed. opendir successfull. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26570&edit=1

« previous php.bugs (#51940) next »