Commit d051994e by Franz Liedke

Fix CLI mode detection for some shared hosts.

parent 38562d50
......@@ -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