#49742 [Opn->Bgs]: fopen error

From: Date: Fri, 02 Oct 2009 07:42:19 +0000
Subject: #49742 [Opn->Bgs]: fopen error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143178@lists.php.net to get a copy of this message
ID: 49742 Updated by: pajoye@php.net Reported By: kanadian at kanadian dot net -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: Windows Vista PHP Version: 5.3.0 New Comment: Already reported and fixed in SVN. Try a SNV snapshot. Previous Comments: ------------------------------------------------------------------------ [2009-10-02 01:34:01] kanadian at kanadian dot net 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49742&edit=1

« previous php.bugs (#143178) next »