File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ if(PHP_WINDOWS_VERSION_MAJOR < 6) {
11
11
die ('skip windows version 6.0+ only test ' );
12
12
}
13
13
14
- $ ret = exec ('mklink rename_variation13tmp.lnk ' . __FILE__ .' 2>&1 ' , $ out );
14
+ $ fn = "bug47767.lnk " ;
15
+ $ ret = exec ("mklink $ fn " . __FILE__ .' 2>&1 ' , $ out );
16
+ @unlink ($ fn );
15
17
if (strpos ($ ret , 'privilege ' )) {
16
18
die ('skip. SeCreateSymbolicLinkPrivilege not enable for this user. ' );
17
19
}
@@ -47,4 +49,4 @@ rmdir($junctionname);
47
49
Testing include_once using file symbolic link
48
50
I am included
49
51
Testing include_once using directory symbolic link
50
- Testing include_once using junction points
52
+ Testing include_once using junction points
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ Test rename() function: usage variations-6
4
4
<?php
5
5
if (substr (PHP_OS , 0 , 3 ) != 'WIN ' ) die ('skip.. for Windows ' );
6
6
if (!function_exists ("symlink " )) die ("skip symlinks are not supported " );
7
- $ ret = exec ('mklink rename_variation13tmp.lnk ' . __FILE__ .' 2>&1 ' , $ out );
7
+ $ fn = "rename_variation6tmp.lnk " ;
8
+ $ ret = exec ("mklink $ fn " . __FILE__ .' 2>&1 ' , $ out );
9
+ @unlink ($ fn );
8
10
if (strpos ($ ret , 'privilege ' )) {
9
11
die ('skip. SeCreateSymbolicLinkPrivilege not enable for this user. ' );
10
12
}
You can’t perform that action at this time.
0 commit comments