Merge pull request #1747 from voidman/patch-1

Update laravel/request.php
This commit is contained in:
Taylor Otwell 2013-03-28 14:04:05 -07:00
commit 118555002f
1 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ public static function time()
*/
public static function cli()
{
return defined('STDIN') || (substr(PHP_SAPI, 0, 3) == 'cgi' && getenv('TERM'));
return defined('STDIN') || (PHP_SAPI != "cgi-fcgi" && substr(PHP_SAPI, 0, 3) == 'cgi' && getenv('TERM'));
}
/**
@ -287,4 +287,4 @@ public static function __callStatic($method, $parameters)
return call_user_func_array(array(static::foundation(), $method), $parameters);
}
}
}