Merge pull request #1212 from franzliedke/patch-46

Fix CLI mode detection for some shared hosts.
This commit is contained in:
Taylor Otwell
2013-01-05 13:37:31 -08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -196,7 +196,7 @@ class Request {
*/
public static function cli()
{
return defined('STDIN');
return defined('STDIN') || (substr(PHP_SAPI, 0, 3) == 'cgi' && getenv('TERM'));
}
/**