silverstripe/silverstripe-framework — pull request #2726 by marcokernler (2013-12-17 10:37:39+00:00)
Title: Check whether run from cli or from web request within cli-script.php

For some reasons on one of my hosts, the env var "$_SERVER['HTTP_HOST']" are set even if executed from cli.