fix exception when there's no pharext_install.php
authorMichael Wallner <mike@php.net>
Fri, 6 Mar 2015 17:52:27 +0000 (18:52 +0100)
committerMichael Wallner <mike@php.net>
Fri, 6 Mar 2015 17:52:27 +0000 (18:52 +0100)
bin/pharext
src/pharext/Installer.php

index 8de8858ad01c58da9154fa238aa4a3275df75b23..92f999c6eed4e2def9d03b533e9dd68a70c59fb6 100755 (executable)
Binary files a/bin/pharext and b/bin/pharext differ
index 19aad72c67f531bee4b77361769115483a2262d0..6aae795cd19373d45285837393eaa80eb1617606 100644 (file)
@@ -73,7 +73,7 @@ class Installer implements Command
                $phars[$this->tmp] = $phar;
 
                foreach ($phars as $phar) {
-                       if (($hook = $phar["pharext_install.php"])) {
+                       if (isset($phar["pharext_install.php"])) {
                                $callable = include $phar["pharext_install.php"];
                                if (is_callable($callable)) {
                                        $recv[] = $callable($this);