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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
16 - 12 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 30 20:01:24 2021 UTC