X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fpharext%2FInstaller.php;h=ed8221113a2105a0a400967f250bc8719c66e94c;hb=50e5714c543ed50557a1b644c6df27b8d298b6e1;hp=c30e11a5137d5c7a57f80013e3b6424d2d3f9000;hpb=80b9268e4f72fef35e2a87ff45dd64fc727933a4;p=pharext%2Fpharext diff --git a/src/pharext/Installer.php b/src/pharext/Installer.php index c30e11a..ed82211 100644 --- a/src/pharext/Installer.php +++ b/src/pharext/Installer.php @@ -120,22 +120,6 @@ class Installer implements Command } } - /** - * Create a new temp directory - * @param string $prefix - * @return string - */ - private function newtemp($prefix) { - $temp = $this->tempname($prefix); - if (!is_dir($temp)) { - if (!mkdir($temp, 0750, true)) { - $this->error(null); - exit(3); - } - } - return $temp; - } - /** * Prepares, configures, builds and installs the extension */ @@ -178,25 +162,6 @@ class Installer implements Command } } - /** - * rm -r - * @param string $dir - */ - private function rm($dir) { - foreach (scandir($dir) as $entry) { - if ($entry === "." || $entry === "..") { - continue; - } elseif (is_dir("$dir/$entry")) { - $this->rm("$dir/$entry"); - } elseif (!unlink("$dir/$entry")) { - $this->error(null); - } - } - if (!rmdir($dir)) { - $this->error(null); - } - } - /** * Execute a program with escalated privileges handling interactive password prompt * @param string $command