Merge pull request #1747 from voidman/patch-1
Update laravel/request.php
This commit is contained in:
commit
118555002f
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue