1
0
Fork 0

Fix for php8 when symlink function is disabled

pull/9532/head
Michael Voříšek 2020-11-30 00:59:42 +01:00 committed by GitHub
parent 0da9e216fc
commit e712130062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -601,7 +601,12 @@ class Filesystem
$relativePath = $this->findShortestPath($link, $target);
chdir(\dirname($link));
$result = @symlink($relativePath, $link);
if (function_exists('symlink')) {
$result = @symlink($relativePath, $link);
} else {
$result = false;
}
chdir($cwd);