php.net |  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";
  }
  $d->close();

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
http://www.php.net/bugs.php?id=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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-01 21:45 UTC] sniper@php.net
Some other fixes were made after 4.0.6 was released.
Please try the latest snapshot build from here:

http://www.zend.com/snapshots/
 [2001-08-02 09:53 UTC] sniper@php.net
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] sniper@php.net
Please try the PHP 4.0.7 RC1:

http://www.php.net/~zeev/php-4.0.7RC1-Win32.zip

--Jani

 [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

is_dir
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.

Thanks

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

var_dump(is_dir("\\\\ntserver14\\shared\\cameron"));
var_dump(lstat("//ntserver14/shared/cameron/myfile"));
 [2001-09-22 11:47 UTC] derick@php.net
No feedback, and it works fine for me (using escaped backslashes or forwardslashes).

Derick
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jan 22 04:01:23 2021 UTC