فهرست منبع

There is no need in DIRECTORY_SEPARATOR since it Unix

Pavel Puchkin 11 سال پیش
والد
کامیت
a287884619
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Composer/Downloader/GzipDownloader.php

+ 1 - 1
src/Composer/Downloader/GzipDownloader.php

@@ -39,7 +39,7 @@ class GzipDownloader extends ArchiveDownloader
 
         // Try to use gunzip on *nix
         if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
-            $targetDirectory = $path . DIRECTORY_SEPARATOR . basename($file);
+            $targetDirectory = $path . '/' . basename($file);
             $command = 'gzip -d < ' . escapeshellarg($file) . ' > ' . escapeshellarg($targetDirectory);
 
             if (0 === $this->process->execute($command, $ignoredOutput)) {