From: Michael Wallner Date: Sun, 22 Mar 2015 08:13:42 +0000 (+0100) Subject: fix installer tempdir usage X-Git-Tag: v3.0.0~21 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d24bb2bd69ba76871bd239ca1e0ba98a5eeaab5d;p=pharext%2Fpharext fix installer tempdir usage --- diff --git a/bin/pharext b/bin/pharext index cd8fe7c..8b7f25e 100755 Binary files a/bin/pharext and b/bin/pharext differ diff --git a/src/pharext/Installer.php b/src/pharext/Installer.php index 94f8149..7866b65 100644 --- a/src/pharext/Installer.php +++ b/src/pharext/Installer.php @@ -64,17 +64,17 @@ class Installer implements Command */ public function run($argc, array $argv) { $this->cwd = getcwd(); - $this->tmp = $this->tempname(basename(Phar::running(false))); + $this->tmp = new Tempdir(basename(Phar::running(false))); $phar = new Phar(Phar::running(false)); foreach ($phar as $entry) { if (fnmatch("*.ext.phar*", $entry->getBaseName())) { $temp = new Tempdir($entry->getBaseName()); $phar->extractTo($temp, $entry->getFilename(), true); - $phars[$temp] = new Phar($temp."/".$entry->getFilename()); + $phars[(string) $temp] = new Phar($temp."/".$entry->getFilename()); } } - $phars[$this->tmp] = $phar; + $phars[(string) $this->tmp] = $phar; foreach ($phars as $phar) { if (isset($phar["pharext_install.php"])) {