1
0
Fork 0

Revert "Fixed an issue when a phar file is used in "files" option in composer.json"

This reverts commit 41e91f3064.

The commit 41e91f3 in current codebase generates absolute path in
autoload_static.php for phar file.

Also according to http://php.net/manual/en/phar.using.intro.php, the `phar://`
prefix is not needed.
pull/6455/merge
Li Chuangbo 2017-04-26 20:02:15 +12:00 committed by Jordi Boggiano
parent 771ea8bffe
commit 1f4882a3e6
1 changed files with 0 additions and 4 deletions

View File

@ -534,10 +534,6 @@ EOF;
}
}
if (preg_match('/\.phar$/', $path)) {
$baseDir = "'phar://' . " . $baseDir;
}
return $baseDir . (($path !== false) ? var_export($path, true) : "");
}