From ddd885e6d793a83e7505162881bcfd0beab89d3b Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Fri, 22 Mar 2013 17:18:07 -0700 Subject: [PATCH] CRM-12196 --- bin/cli.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/cli.class.php b/bin/cli.class.php index 692d7e7dde..e69d25fa88 100644 --- a/bin/cli.class.php +++ b/bin/cli.class.php @@ -185,8 +185,12 @@ class civicrm_cli { $_SERVER['PHP_SELF'] = "/index.php"; $_SERVER['HTTP_HOST'] = $this->_site; $_SERVER['REMOTE_ADDR'] = "127.0.0.1"; + $_SERVER['SERVER_SOFTWARE'] = NULL; + $_SERVER['REQUEST_METHOD'] = 'GET'; + // SCRIPT_FILENAME needed by CRM_Utils_System::cmsRootPath $_SERVER['SCRIPT_FILENAME'] = __FILE__; + // CRM-8917 - check if script name starts with /, if not - prepend it. if (ord($_SERVER['SCRIPT_NAME']) != 47) { $_SERVER['SCRIPT_NAME'] = '/' . $_SERVER['SCRIPT_NAME']; -- 2.25.1