DIR functions do not work on root UNC path
| Bug #40560 | DIR functions do not work on root UNC path | ||||
|---|---|---|---|---|---|
| Submitted: | 2007-02-20 15:24 UTC | Modified: | 2007-02-21 13:09 UTC | ||
| From: | andy at advancethermal dot com | Assigned: | dmitry (profile) | ||
| Status: | Closed | Package: | Directory function related | ||
| PHP Version: | 5.2.1 | OS: | Windows Server 2003 | ||
| Private report: | No | CVE-ID: | None | ||
[2007-02-20 15:24 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits