File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
ext/standard/tests/file/windows_links Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,14 @@ if (count($output) == 0) {
17
17
?>
18
18
--FILE--
19
19
<?php
20
+ $ mountvol = "c: \\Windows \\System32 \\mountvol.exe " ;
20
21
$ old_dir = __DIR__ ;
21
22
$ dirname = __DIR__ . "\\mnt \\test \\directory " ;
22
23
mkdir ($ dirname , 0700 , true );
23
24
chdir (__DIR__ . "\\mnt \\test " );
24
25
$ drive = substr (__DIR__ , 0 , 2 );
25
26
$ pathwithoutdrive = substr (__DIR__ , 2 );
26
- $ ret = exec (" mountvol " . $ drive . " /L " , $ output , $ ret_val );
27
+ $ ret = exec ($ mountvol . " " . $ drive . " /L " , $ output , $ ret_val );
27
28
exec ("mklink /j mounted_volume " . $ ret , $ output , $ ret_val );
28
29
$ fullpath = "mounted_volume " . $ pathwithoutdrive ;
29
30
exec ("mklink /j mklink_junction directory " , $ output , $ ret_val );
Original file line number Diff line number Diff line change @@ -17,13 +17,14 @@ if (count($output) == 0) {
17
17
?>
18
18
--FILE--
19
19
<?php
20
+ $ mountvol = "c: \\Windows \\System32 \\mountvol.exe " ;
20
21
$ old_dir = __DIR__ ;
21
22
$ dirname = __DIR__ . "\\mnt \\test \\directory " ;
22
23
exec ("mkdir " . $ dirname , $ output , $ ret_val );
23
24
chdir (__DIR__ . "\\mnt \\test " );
24
25
$ drive = substr (__DIR__ , 0 , 2 );
25
26
$ pathwithoutdrive = substr (__DIR__ , 2 );
26
- $ ret = exec (" mountvol " . $ drive . " /L " , $ output , $ ret_val );
27
+ $ ret = exec ($ mountvol . " " . $ drive . " /L " , $ output , $ ret_val );
27
28
exec ("mklink /j mounted_volume " . $ ret , $ output , $ ret_val );
28
29
$ fullpath = "mounted_volume " . $ pathwithoutdrive ;
29
30
exec ("mklink /j mklink_junction directory " , $ output , $ ret_val );
Original file line number Diff line number Diff line change @@ -17,13 +17,14 @@ unlink('mklink bug48746_tmp.lnk');
17
17
?>
18
18
--FILE--
19
19
<?php
20
+ $ mountvol = "c: \\Windows \\System32 \\mountvol.exe " ;
20
21
$ old_dir = __DIR__ ;
21
22
$ dirname = __DIR__ . "\\mnt \\test \\directory " ;
22
23
exec ("mkdir " . $ dirname , $ output , $ ret_val );
23
24
chdir (__DIR__ . "\\mnt \\test " );
24
25
$ drive = substr (__DIR__ , 0 , 2 );
25
26
$ pathwithoutdrive = substr (__DIR__ , 2 );
26
- $ ret = exec (" mountvol " . $ drive . " /L " , $ output , $ ret_val );
27
+ $ ret = exec ($ mountvol . " " . $ drive . " /L " , $ output , $ ret_val );
27
28
exec ("mklink /j mounted_volume " . $ ret , $ output , $ ret_val );
28
29
$ fullpath = "mounted_volume " . $ pathwithoutdrive ;
29
30
exec ("mklink /j mklink_junction directory " , $ output , $ ret_val );
You can’t perform that action at this time.
0 commit comments