From 75d1759e77e502fe0482a68bac7ef7ed7a6830ae Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Tue, 26 Mar 2013 13:04:07 +0100 Subject: [PATCH] Replace DIRECTORY_SEPARATOR in paths, not PATH_SEPARATOR --- src/Composer/Package/Archiver/ArchivableFilesFinder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Package/Archiver/ArchivableFilesFinder.php b/src/Composer/Package/Archiver/ArchivableFilesFinder.php index ab9604df5..f2c6aad5f 100644 --- a/src/Composer/Package/Archiver/ArchivableFilesFinder.php +++ b/src/Composer/Package/Archiver/ArchivableFilesFinder.php @@ -55,7 +55,7 @@ class ArchivableFilesFinder extends \IteratorIterator $relativePath = preg_replace( '#^'.preg_quote($sources, '#').'#', '', - str_replace(PATH_SEPARATOR, '/', $file->getRealPath()) + str_replace(DIRECTORY_SEPARATOR, '/', $file->getRealPath()) ); $exclude = false;