1
0
Fork 0

Merge pull request #9532 from mvorisek/patch-2

Fix for PHP 8.0 when symlink function is disabled
pull/9540/head
Jordi Boggiano 2020-12-02 23:31:12 +01:00 committed by GitHub
commit adf7bebf21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -597,6 +597,10 @@ class Filesystem
*/
public function relativeSymlink($target, $link)
{
if (!function_exists('symlink')) {
return false;
}
$cwd = getcwd();
$relativePath = $this->findShortestPath($link, $target);