|
@@ -196,7 +196,7 @@ class Request {
|
|
*/
|
|
*/
|
|
public static function cli()
|
|
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 @@ class Request {
|
|
return call_user_func_array(array(static::foundation(), $method), $parameters);
|
|
return call_user_func_array(array(static::foundation(), $method), $parameters);
|
|
}
|
|
}
|
|
|
|
|
|
-}
|
|
|
|
|
|
+}
|