Commit cfc024fe by Taylor Otwell

Merge pull request #1212 from franzliedke/patch-46

Fix CLI mode detection for some shared hosts.
parents c397c26a b1e4cf9d
......@@ -213,7 +213,7 @@ if (isset($environment))
|
*/
if (defined('STDIN'))
if (Request::cli())
{
$console = CLI\Command::options($_SERVER['argv']);
......
......@@ -196,7 +196,7 @@ class Request {
*/
public static function cli()
{
return defined('STDIN');
return defined('STDIN') || (substr(PHP_SAPI, 0, 3) == 'cgi' && getenv('TERM'));
}
/**
......
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