--TEST-- Bug#48746 - Junction not working properly --CREDIT-- Venkat Raman Don (don.raman@microsoft.com) --SKIPIF-- &1', $out); if (strpos($ret, 'privilege')) { die('skip. SeCreateSymbolicLinkPrivilege not enable for this user.'); } unlink('bug48746_tmp.lnk'); ?> --FILE-- "); file_put_contents("$fullpath\\mnt\\test\\directory\\b.php", ""); print_r(scandir("mklink_junction")); print_r(scandir("$fullpath\\mnt\\test\\directory")); print_r(scandir("$fullpath\\mnt\\test\\mklink_junction")); unlink("$fullpath\\mnt\\test\\directory\\b.php"); unlink("mklink_junction\\a.php"); chdir($old_dir); rmdir(__DIR__ . "\\mnt\\test\\directory"); rmdir(__DIR__ . "\\mnt\\test\\mklink_junction"); rmdir(__DIR__ . "\\mnt\\test\\mounted_volume"); rmdir(__DIR__ . "\\mnt\\test"); rmdir(__DIR__ . "\\mnt"); ?> --EXPECT-- Array ( [0] => . [1] => .. [2] => a.php [3] => b.php ) Array ( [0] => . [1] => .. [2] => a.php [3] => b.php ) Array ( [0] => . [1] => .. [2] => a.php [3] => b.php )