Commit 9c95e2f6 authored by Patrick Durold's avatar Patrick Durold

only execute phar stub on direct invocation of phar archive

parent 7cd1c503
...@@ -105,7 +105,7 @@ Phar::mapPhar('silex.phar'); ...@@ -105,7 +105,7 @@ Phar::mapPhar('silex.phar');
require_once 'phar://silex.phar/autoload.php'; require_once 'phar://silex.phar/autoload.php';
if ('cli' === php_sapi_name() && isset($argv[1])) { if ('cli' === php_sapi_name() && basename(__FILE__) === $argv[0] && isset($argv[1])) {
switch ($argv[1]) { switch ($argv[1]) {
case 'update': case 'update':
$remoteFilename = 'http://silex-project.org/get/silex.phar'; $remoteFilename = 'http://silex-project.org/get/silex.phar';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment