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

From: Date: Wed, 10 Dec 2003 02:07:26 +0000
Subject: #26570 [NEW]: is_dir fails for UNC filepaths.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-51873@lists.php.net to get a copy of this message
From: kris at mha dot ca Operating system: Windows 2000 and NT 4 CGI PHP version: 4.3.4 PHP Bug Type: Directory function related Bug description: is_dir fails for UNC filepaths. 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 bug report at http://bugs.php.net/?id=26570&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26570&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26570&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26570&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26570&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26570&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26570&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26570&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26570&r=support Expected behavior: http://bugs.php.net/fix.php?id=26570&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26570&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26570&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26570&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26570&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26570&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26570&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26570&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26570&r=float

« previous php.bugs (#51873) next »