Skip to content

Commit fa3bbf0

Browse files
committedDec 12, 2022
Fix borked Windows tests after 3be2b0d
1 parent 3be2b0d commit fa3bbf0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎ext/standard/tests/file/file_variation5-win32-mb.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ chdir($script_directory);
3434
?>
3535
--CLEAN--
3636
<?php
37-
$test_dirname = basename(__FILE__, ".clean.php") . "私はガラスを食べられますtestdir";
37+
$test_dirname = __DIR__ . '/' . basename(__FILE__, ".clean.php") . "私はガラスを食べられますtestdir";
3838
$filepath = __DIR__ . '/file_variation_5.tmp';
39-
rmdir($test_dirname);
4039
unlink($filepath);
40+
rmdir($test_dirname);
4141
?>
4242
--EXPECT--
4343
file() on a path containing .. and .

‎ext/standard/tests/file/file_variation5-win32.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ chdir($script_directory);
3434
?>
3535
--CLEAN--
3636
<?php
37-
$test_dirname = basename(__FILE__, ".clean.php") . "testdir";
37+
$test_dirname = __DIR__ . '/' . basename(__FILE__, ".clean.php") . "testdir";
3838
$filepath = __DIR__ . '/file_variation_5.tmp';
39+
unlink($filepath); // Should be delete via the symlink deletion
3940
rmdir($test_dirname);
40-
unlink($filepath);
4141
?>
4242
--EXPECT--
4343
file() on a path containing .. and .

0 commit comments

Comments
 (0)