|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-10-02 07:42 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 27 10:00:01 2025 UTC |
Description: ------------ fopen failes to read after making of junction with exec("mklink target link") and symlink(target, link) failes totaly Reproduce code: --------------- <?php $link = "c:\new\" $linkfile = "test.txt"; $target = "c:\users\User_Name\music\"; $mklink = $link." ".$target; symlink($link, $target); // failes totaly exec("mklink /j ".$mklink); // works fclose(fopen($linkfile, "x")); // will work to create the file $handler = fopen($linkfile, "rb"); // fails to open file echo is_file($linkfile); // returns true as file is there ?> Expected result: ---------------- to open/read the file behind a junction link Actual result: -------------- fails to open/read behind junction link