|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12524 Still doesn't support UNC paths
Submitted: 2001-08-01 21:28 UTC Modified: 2001-09-22 11:47 UTC
From: c dot just at phoenixdigital dot com Assigned:
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 4.0.6 OS: WinNT 4.0
Private report: No CVE-ID: None
 [2001-08-01 21:28 UTC] c dot just at phoenixdigital dot com
The fix that was applied to PHP 4.0.6 still didn't fix the UNC problems which were broken when PHP moved from PHP3 -> PHP4

  $d = dir("//ntserver14/shared/cameron");
  echo "Handle: ".$d->handle."<br>\n";
  echo "Path: ".$d->path."<br>\n";
  while($entry=$d->read()) {
     echo $entry."<br>\n";

I ran the same code under php3.0.16 and it still works there.
This still fails to work with the lastest version of PHP.
It was stated as being fixed in 4.0.6 and I received a bug report closure for BUG 9234

Any Ideas why it still doesn't work?
Am I doing something wrong from this end?

PS I have checked to see that all shares and filesystem are visible by the IIS4.0 webserver account.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-01 21:45 UTC]
Some other fixes were made after 4.0.6 was released.
Please try the latest snapshot build from here:
 [2001-08-02 09:53 UTC]
User feedback: (next time, use the web interface..)
I have tested the snapshot you suggested and it still does not work.

 [2001-08-18 21:52 UTC]
Please try the PHP 4.0.7 RC1:


 [2001-08-20 21:28 UTC] c dot just at phoenixdigital dot com
The DIR function seems to be working well with that version.

The only functions that don't seem to be working now are the

which returns the following errors
Warning: stat failed for \\downstairs\music. (errno=2 - No such file or directory)

Also the "stat" function doesn't return anything of use but it doesn't give an error.

It looks good so far though.


 [2001-08-21 06:35 UTC]
works fine for me.
remember to either escape the backslashes or to use frontslashes.

 [2001-09-22 11:47 UTC]
No feedback, and it works fine for me (using escaped backslashes or forwardslashes).

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 02:01:30 2024 UTC