php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andy at advancethermal dot com
New email:
PHP Version: OS:

 

 [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 commitsRelated reports
 [2007-02-21 13:09 UTC] dmitry@php.net
Fixed in CVS HEAD and PHP_5_2.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC