From db81ff520543dc6584336c736cdb4d3f8b62996f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 19 Sep 2009 10:38:47 +0000 Subject: - Patch #581286 by David Strauss | moshe weitzman: fixed detection of CLI environments properly. --- scripts/drupal.sh | 2 +- scripts/run-tests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/drupal.sh b/scripts/drupal.sh index 477fc2c4b..9e743cf32 100755 --- a/scripts/drupal.sh +++ b/scripts/drupal.sh @@ -62,7 +62,7 @@ $cmd = 'index.php'; $_SERVER['HTTP_HOST'] = 'default'; $_SERVER['PHP_SELF'] = '/index.php'; $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; -$_SERVER['SERVER_SOFTWARE'] = 'PHP CLI'; +$_SERVER['SERVER_SOFTWARE'] = NULL; $_SERVER['REQUEST_METHOD'] = 'GET'; $_SERVER['QUERY_STRING'] = ''; $_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] = '/'; diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index a5f8b67a8..54f47bc53 100755 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -24,7 +24,7 @@ if ($args['execute-batch']) { } else { // Run administrative functions as CLI. - simpletest_script_init("PHP CLI"); + simpletest_script_init(NULL); } // Bootstrap to perform initial validation or other operations. -- cgit v1.2.3