librelist archives

« back to archive

Some help on .pharignore

Some help on .pharignore

From:
William Martin
Date:
2011-11-08 @ 15:24
Hi loic,

Can you give me an example of ".pharignore" content to ignore ".git/" folder ?
And the location of this file.

Another point function getProjectFiles is bugged, the array map
returned have inversed key/value, so path of file in the phar are
wrong.

-            $files[$fileInfo->getRealPath()] = substr($fileInfo->getRealPath(),
-                                           strlen($this->cwd) + 1,
-                                           strlen($fileInfo->getRealPath()));
-
+            $pharpath = substr($fileInfo->getRealPath(),
+                                           strlen($this->cwd) + 1,
+                                           strlen($fileInfo->getRealPath()));
+
+            $files[$pharpath] = $fileInfo->getRealPath();

William