8000 reopen inputStream after a ctrl+D/ctrl+Z · symfony/symfony@1165217 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1165217

Browse files
committed
reopen inputStream after a ctrl+D/ctrl+Z
1 parent af8ad34 commit 1165217

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Console/Helper/QuestionHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ private function readInput($inputStream, Question $question)
521521
while (false !== ($char = fgetc($inputStream))) {
522522
$ret .= $char;
523523
}
524+
$this->inputStream = fopen('php://stdin', 'r');
524525

525526
return $ret;
526527
}

0 commit comments

Comments
 (0)
0