From 1f4882a3e6a229ceb878eba74e6a805cad086bf8 Mon Sep 17 00:00:00 2001 From: Li Chuangbo Date: Wed, 26 Apr 2017 20:02:15 +1200 Subject: [PATCH] Revert "Fixed an issue when a phar file is used in "files" option in composer.json" This reverts commit 41e91f3064cee51dd52f45831dc48748ce37a095. 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. --- src/Composer/Autoload/AutoloadGenerator.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index c637b9438..1953e593a 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -534,10 +534,6 @@ EOF; } } - if (preg_match('/\.phar$/', $path)) { - $baseDir = "'phar://' . " . $baseDir; - } - return $baseDir . (($path !== false) ? var_export($path, true) : ""); }