Skip to content

Commit 739eda3

Browse files
committed
Merge branch 'PHP-5.4'
* PHP-5.4: Fix bug 61746 Failing tests in ext/standard/tests/file/windows_links/*
2 parents 80d692f + d55afe4 commit 739eda3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

ext/standard/tests/file/windows_links/bug48746.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ if (count($output) == 0) {
1717
?>
1818
--FILE--
1919
<?php
20+
$mountvol = "c:\\Windows\\System32\\mountvol.exe";
2021
$old_dir = __DIR__;
2122
$dirname = __DIR__ . "\\mnt\\test\\directory";
2223
mkdir($dirname, 0700, true);
2324
chdir(__DIR__ . "\\mnt\\test");
2425
$drive = substr(__DIR__, 0, 2);
2526
$pathwithoutdrive = substr(__DIR__, 2);
26-
$ret = exec("mountvol " . $drive . " /L", $output, $ret_val);
27+
$ret = exec($mountvol . " " . $drive . " /L", $output, $ret_val);
2728
exec("mklink /j mounted_volume " . $ret, $output, $ret_val);
2829
$fullpath = "mounted_volume" . $pathwithoutdrive;
2930
exec("mklink /j mklink_junction directory", $output, $ret_val);

ext/standard/tests/file/windows_links/bug48746_1.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ if (count($output) == 0) {
1717
?>
1818
--FILE--
1919
<?php
20+
$mountvol = "c:\\Windows\\System32\\mountvol.exe";
2021
$old_dir = __DIR__;
2122
$dirname = __DIR__ . "\\mnt\\test\\directory";
2223
exec("mkdir " . $dirname, $output, $ret_val);
2324
chdir(__DIR__ . "\\mnt\\test");
2425
$drive = substr(__DIR__, 0, 2);
2526
$pathwithoutdrive = substr(__DIR__, 2);
26-
$ret = exec("mountvol " . $drive . " /L", $output, $ret_val);
27+
$ret = exec($mountvol . " " . $drive . " /L", $output, $ret_val);
2728
exec("mklink /j mounted_volume " . $ret, $output, $ret_val);
2829
$fullpath = "mounted_volume" . $pathwithoutdrive;
2930
exec("mklink /j mklink_junction directory", $output, $ret_val);

ext/standard/tests/file/windows_links/bug48746_2.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ unlink('mklink bug48746_tmp.lnk');
1717
?>
1818
--FILE--
1919
<?php
20+
$mountvol = "c:\\Windows\\System32\\mountvol.exe";
2021
$old_dir = __DIR__;
2122
$dirname = __DIR__ . "\\mnt\\test\\directory";
2223
exec("mkdir " . $dirname, $output, $ret_val);
2324
chdir(__DIR__ . "\\mnt\\test");
2425
$drive = substr(__DIR__, 0, 2);
2526
$pathwithoutdrive = substr(__DIR__, 2);
26-
$ret = exec("mountvol " . $drive . " /L", $output, $ret_val);
27+
$ret = exec($mountvol . " " . $drive . " /L", $output, $ret_val);
2728
exec("mklink /j mounted_volume " . $ret, $output, $ret_val);
2829
$fullpath = "mounted_volume" . $pathwithoutdrive;
2930
exec("mklink /j mklink_junction directory", $output, $ret_val);

0 commit comments

Comments
 (0)