8000 merged branch norzechowicz/posix_isatty (PR #8939) · symfony/symfony@abb8042 · GitHub
[go: up one dir, main page]

6601
Skip to content

Commit abb8042

Browse files
committed
merged branch norzechowicz/posix_isatty (PR #8939)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #8939). Discussion ---------- [Console] Ignore posix_istatty warnings | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT When input stream is ``php://memory`` or ``php://temp`` function ``posix_isatty`` throws following warning > posix_isatty(): could not use stream of type 'MEMORY' in .... Commits ------- cc255dd Ignore posix_istatty warnings
2 parents aee9799 + 4e9d990 commit abb8042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function doRun(InputInterface $input, OutputInterface $output)
171171

172172
if (function_exists('posix_isatty') && $this->getHelperSet()->has('dialog')) {
173173
$inputStream = $this->getHelperSet()->get('dialog')->getInputStream();
174-
if (!posix_isatty($inputStream)) {
174+
if (!@posix_isatty($inputStream)) {
175175
$input->setInteractive(false);
176176
}
177177
}

0 commit comments

Comments
 (0)
0