php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11215 ISAPI version: unable to read directory from share
Submitted: 2001-05-31 10:34 UTC Modified: 2001-05-31 12:54 UTC
From: zizka at bigfoot dot com Assigned:
Status: Closed Package: Directory function related
PHP Version: 4.0.5 OS: Windows2000
Private report: No CVE-ID: None
 [2001-05-31 10:34 UTC] zizka at bigfoot dot com
if($dir=@opendir("//server/share"))
{
  while($file = readdir($dir))
  {
    echo "$file\n";
  }  
  closedir($dir);
}


when i try to read contents of a directory and the path is given in form "//server/share" i get no error, but i get empty directory. Script written above gives no output.

BUT when i use php.exe - not the isapi version of php, everything is ok.

Martin Zizka

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-31 12:54 UTC] sniper@php.net
The UNC paths will be supported in PHP 4.0.6.
(this is fixed already in CVS)

--Jani

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 14:01:23 2020 UTC