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

From: Date: Wed, 10 Dec 2003 14:12:26 +0000
Subject: #26570 [Opn->Bgs]: is_dir fails for UNC filepaths.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-51913@lists.php.net to get a copy of this message
ID: 26570 Updated by: sniper@php.net Reported By: kris at mha dot ca -Status: Open +Status: Bogus Bug Type: Directory function related Operating System: Windows 2000 and NT 4 CGI PHP Version: 4.3.4 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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 (#51913) next »