Skip to content

Commit d663296

Browse files
committed
cleanup temporary data
1 parent 4b2cc62 commit d663296

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ext/standard/tests/file/bug47767.phpt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ if(PHP_WINDOWS_VERSION_MAJOR < 6) {
1111
die('skip windows version 6.0+ only test');
1212
}
1313

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);
1517
if (strpos($ret, 'privilege')) {
1618
die('skip. SeCreateSymbolicLinkPrivilege not enable for this user.');
1719
}
@@ -47,4 +49,4 @@ rmdir($junctionname);
4749
Testing include_once using file symbolic link
4850
I am included
4951
Testing include_once using directory symbolic link
50-
Testing include_once using junction points
52+
Testing include_once using junction points

ext/standard/tests/file/rename_variation6-win32.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ Test rename() function: usage variations-6
44
<?php
55
if (substr(PHP_OS, 0, 3) != 'WIN') die('skip.. for Windows');
66
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);
810
if (strpos($ret, 'privilege')) {
911
die('skip. SeCreateSymbolicLinkPrivilege not enable for this user.');
1012
}

0 commit comments

Comments
 (0)