fix compressed phars
authorMichael Wallner <mike@php.net>
Sun, 8 Mar 2015 11:26:10 +0000 (12:26 +0100)
committerMichael Wallner <mike@php.net>
Mon, 9 Mar 2015 07:48:37 +0000 (08:48 +0100)
src/pharext/Packager.php

index f27c38a0a8b0f7e623b71cf514dc1f9b0b6850e5..a342e2f25d5c8795bc983f7194cf1bb4052e7a2e 100644 (file)
@@ -143,7 +143,8 @@ class Packager implements Command
                        if ($this->args->gzip) {
                                $this->info("Compressing with gzip ... ");
                                try {
-                                       $package->compress(Phar::GZ);
+                                       $package->compress(Phar::GZ)
+                                               ->setDefaultStub("pharext_installer.php");
                                        $this->info("OK\n");
                                } catch (\Exception $e) {
                                        $this->error("%s\n", $e->getMessage());
@@ -152,7 +153,8 @@ class Packager implements Command
                        if ($this->args->bzip) {
                                $this->info("Compressing with bzip ... ");
                                try {
-                                       $package->compress(Phar::BZ2);
+                                       $package->compress(Phar::BZ2)
+                                               ->setDefaultStub("pharext_installer.php");
                                        $this->info("OK\n");
                                } catch (\Exception $e) {
                                        $this->error("%s\n", $e->getMessage());