From e8b4e7087d8c5f8d0bc96caff8e1b31e10765f82 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 7 Jun 2017 15:08:01 +0200 Subject: [PATCH] remove (not supported) parameters after #!/usr/bin/env php --- admin/admin-cli.php | 2 +- doc/check_namespace.php | 2 +- doc/fix_api.php | 2 +- doc/test-cli.php | 6 ++++-- filemanager/cli.php | 2 +- setup/setup-cli.php | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/admin/admin-cli.php b/admin/admin-cli.php index d23da2697d..87bed6fa92 100755 --- a/admin/admin-cli.php +++ b/admin/admin-cli.php @@ -1,4 +1,4 @@ -#!/usr/bin/php -qC +#!/usr/bin/env php test-cli.php must NOT be called as web-page --> exiting !!!'); } -require_once './api/src/loader/common.php'; +ini_set('apc.enable_cli', true); + +require_once dirname(__DIR__).'/api/src/loader/common.php'; $_SERVER['argv'][] = '--verbose'; $_SERVER['argv'][] = 'EgroupwareTestRunner'; diff --git a/filemanager/cli.php b/filemanager/cli.php index aa37b1b32e..977c3e519a 100755 --- a/filemanager/cli.php +++ b/filemanager/cli.php @@ -1,4 +1,4 @@ -#!/usr/bin/php -qC +#!/usr/bin/env php