Merge pull request #9532 from mvorisek/patch-2
Fix for PHP 8.0 when symlink function is disabledpull/9540/head
commit
adf7bebf21
|
@ -597,6 +597,10 @@ class Filesystem
|
||||||
*/
|
*/
|
||||||
public function relativeSymlink($target, $link)
|
public function relativeSymlink($target, $link)
|
||||||
{
|
{
|
||||||
|
if (!function_exists('symlink')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$cwd = getcwd();
|
$cwd = getcwd();
|
||||||
|
|
||||||
$relativePath = $this->findShortestPath($link, $target);
|
$relativePath = $this->findShortestPath($link, $target);
|
||||||
|
|
Loading…
Reference in New Issue