1
0
mirror of https://github.com/php/php-src.git synced 2026-04-07 16:13:32 +02:00

Fix bug 61746 Failing tests in ext/standard/tests/file/windows_links/*

This commit is contained in:
Anatoliy Belsky
2012-04-16 17:06:30 +02:00
parent bceafee879
commit f3d86b314f
3 changed files with 6 additions and 3 deletions

View File

@@ -17,13 +17,14 @@ if (count($output) == 0) {
?>
--FILE--
<?php
$mountvol = "c:\\Windows\\System32\\mountvol.exe";
$old_dir = __DIR__;
$dirname = __DIR__ . "\\mnt\\test\\directory";
mkdir($dirname, 0700, true);
chdir(__DIR__ . "\\mnt\\test");
$drive = substr(__DIR__, 0, 2);
$pathwithoutdrive = substr(__DIR__, 2);
$ret = exec("mountvol " . $drive . " /L", $output, $ret_val);
$ret = exec($mountvol . " " . $drive . " /L", $output, $ret_val);
exec("mklink /j mounted_volume " . $ret, $output, $ret_val);
$fullpath = "mounted_volume" . $pathwithoutdrive;
exec("mklink /j mklink_junction directory", $output, $ret_val);

View File

@@ -17,13 +17,14 @@ if (count($output) == 0) {
?>
--FILE--
<?php
$mountvol = "c:\\Windows\\System32\\mountvol.exe";
$old_dir = __DIR__;
$dirname = __DIR__ . "\\mnt\\test\\directory";
exec("mkdir " . $dirname, $output, $ret_val);
chdir(__DIR__ . "\\mnt\\test");
$drive = substr(__DIR__, 0, 2);
$pathwithoutdrive = substr(__DIR__, 2);
$ret = exec("mountvol " . $drive . " /L", $output, $ret_val);
$ret = exec($mountvol . " " . $drive . " /L", $output, $ret_val);
exec("mklink /j mounted_volume " . $ret, $output, $ret_val);
$fullpath = "mounted_volume" . $pathwithoutdrive;
exec("mklink /j mklink_junction directory", $output, $ret_val);

View File

@@ -17,13 +17,14 @@ unlink('mklink bug48746_tmp.lnk');
?>
--FILE--
<?php
$mountvol = "c:\\Windows\\System32\\mountvol.exe";
$old_dir = __DIR__;
$dirname = __DIR__ . "\\mnt\\test\\directory";
exec("mkdir " . $dirname, $output, $ret_val);
chdir(__DIR__ . "\\mnt\\test");
$drive = substr(__DIR__, 0, 2);
$pathwithoutdrive = substr(__DIR__, 2);
$ret = exec("mountvol " . $drive . " /L", $output, $ret_val);
$ret = exec($mountvol . " " . $drive . " /L", $output, $ret_val);
exec("mklink /j mounted_volume " . $ret, $output, $ret_val);
$fullpath = "mounted_volume" . $pathwithoutdrive;
exec("mklink /j mklink_junction directory", $output, $ret_val);