#40560 [Asn->Csd]: DIR functions do not work on root UNC path

From: Date: Wed, 21 Feb 2007 13:09:51 +0000
Subject: #40560 [Asn->Csd]: DIR functions do not work on root UNC path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109254@lists.php.net to get a copy of this message
ID: 40560 Updated by: dmitry@php.net Reported By: andy at advancethermal dot com -Status: Assigned +Status: Closed Bug Type: Directory function related Operating System: Windows Server 2003 PHP Version: 5.2.1 Assigned To: dmitry New Comment: Fixed in CVS HEAD and PHP_5_2. Previous Comments: ------------------------------------------------------------------------ [2007-02-20 15:24:32] andy at advancethermal dot com Description: ------------ DIR functions (scandir, is_dir, etc.) do not recognize root UNC shares as valid directories, but work on subdirectories of the share. This problem surfaced after upgrading from 5.2.0 to 5.2.1 and is present in the latest snap (php5.2-win32-200702201130.zip). Reproduce code: --------------- If the share is //fs/misc, opendir("//fs/misc"); reports: Warning: scandir(//fs/misc) [function.scandir]: failed to open dir: No error in myscript.php on line 2 But opening a subdirectory like opendir("//fs/misc/docs"); works without error. Expected result: ---------------- No error. Actual result: -------------- Warning: scandir(//fs/misc) [function.scandir]: failed to open dir: No error in myscript.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40560&edit=1

« previous php.bugs (#109254) next »