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

From: Date: Tue, 20 Feb 2007 15:35:33 +0000
Subject: #40560 [Opn->Asn]: DIR functions do not work on root UNC path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109186@lists.php.net to get a copy of this message
ID: 40560 Updated by: tony2001@php.net Reported By: andy at advancethermal dot com -Status: Open +Status: Assigned Bug Type: Directory function related Operating System: Windows Server 2003 PHP Version: 5.2.1 -Assigned To: +Assigned To: dmitry 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 (#109186) next »