Reference co-relating code sequence for tty test, refs #9454
parent
380dce9a6b
commit
258f6dc1a2
|
@ -131,6 +131,7 @@ class Application extends BaseApplication
|
||||||
|
|
||||||
if (
|
if (
|
||||||
getenv('COMPOSER_NO_INTERACTION')
|
getenv('COMPOSER_NO_INTERACTION')
|
||||||
|
/* @see \Composer\Util\ProcessExecutor::executeTty - tty test */
|
||||||
|| (function_exists('stream_isatty') && !stream_isatty(STDOUT))
|
|| (function_exists('stream_isatty') && !stream_isatty(STDOUT))
|
||||||
|| (function_exists('posix_isatty') && !posix_isatty(STDOUT))
|
|| (function_exists('posix_isatty') && !posix_isatty(STDOUT))
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -78,6 +78,7 @@ class ProcessExecutor
|
||||||
public function executeTty($command, $cwd = null)
|
public function executeTty($command, $cwd = null)
|
||||||
{
|
{
|
||||||
if (
|
if (
|
||||||
|
/* @see \Composer\Console\Application::doRun - tty test */
|
||||||
(function_exists('stream_isatty') && !stream_isatty(STDOUT))
|
(function_exists('stream_isatty') && !stream_isatty(STDOUT))
|
||||||
|| (function_exists('posix_isatty') && !posix_isatty(STDOUT))
|
|| (function_exists('posix_isatty') && !posix_isatty(STDOUT))
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue