Commit 11855500 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1747 from voidman/patch-1

Update laravel/request.php
parents 41254383 5929f8e5
...@@ -196,7 +196,7 @@ class Request { ...@@ -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 { ...@@ -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);
} }
} }
\ No newline at end of file
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