From 237d5673736e1c24fc37ec0c12083f5a877656bd Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Mon, 22 Jun 2026 11:53:26 -0400 Subject: [PATCH] fix: symlink(): Permission denied on WINNT --- tests/UploadedFileTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/UploadedFileTest.php b/tests/UploadedFileTest.php index 1085e9b..752780d 100644 --- a/tests/UploadedFileTest.php +++ b/tests/UploadedFileTest.php @@ -114,6 +114,10 @@ class UploadedFileTest extends TestCase public function testMoveToSymlinkNonPost(): void { + if (PHP_OS === 'WINNT') { + $this->markTestSkipped('Symbolic links require special privileges on Windows.'); + } + file_put_contents('real_file', 'test'); if (file_exists('tmp_symlink')) { unlink('tmp_symlink');