php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51945 Symlink() Fails On DFS Shares
Submitted: 2010-05-28 19:20 UTC Modified: 2017-10-24 07:51 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: v-sumada at microsoft dot com Assigned: requinix (profile)
Status: Closed Package: Filesystem function related
PHP Version: 5.3.2 OS: windows 2008, 2008R2,2003
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: v-sumada at microsoft dot com
New email:
PHP Version: OS:

 

 [2010-05-28 19:20 UTC] v-sumada at microsoft dot com
Description:
------------
We have a DFS Standalone namespace created at the 2008 Server with a new folder  which has been given a target as remote share .We are trying to create a symlink in this remote Share from 2008R2 Server for a directory and as well as File and Both the cases Fail.The Expected result is failure in  creating the symlink using symlink(). The processs Montior show with the result of "Name Not Found"  in creating a symlink.

Test script:
---------------
<?php
$path ='\\\\winhost-name\\namespace\\folder\\';
$dir_name = "symlinkdir";
$symlink_name = "symlinktodir";
var_dump(mkdir($dir_name,0777,true));
var_dump(symlink($dir_name,symlink_name));
?>

Expected result:
----------------
bool(true)
bool(true)

Actual result:
--------------
bool(true)
bool(false)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-08 11:48 UTC] tony2001@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: pajoye
 [2011-11-29 15:42 UTC] php at cresstone dot com
This appears to be fixed in 5.4, tested using: "PHP 5.4.0RC2-dev (cli) (built: Nov 21 2011 20:03:16)"
 [2017-10-24 07:31 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: pajoye +Assigned To:
 [2017-10-24 07:51 UTC] requinix@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: requinix
 [2017-10-24 07:51 UTC] requinix@php.net
Closing per cresstone's comment.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC