{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/19463","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/19463/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/19463/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/19463/events","html_url":"https://github.com/symfony/symfony/issues/19463","id":168072767,"number":19463,"title":"hiddeninput.exe not testable with interactive input","user":{"login":"Fuzzyma","id":3540542,"avatar_url":"https://avatars.githubusercontent.com/u/3540542?v=3","gravatar_id":"","url":"https://api.github.com/users/Fuzzyma","html_url":"https://github.com/Fuzzyma","followers_url":"https://api.github.com/users/Fuzzyma/followers","following_url":"https://api.github.com/users/Fuzzyma/following{/other_user}","gists_url":"https://api.github.com/users/Fuzzyma/gists{/gist_id}","starred_url":"https://api.github.com/users/Fuzzyma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fuzzyma/subscriptions","organizations_url":"https://api.github.com/users/Fuzzyma/orgs","repos_url":"https://api.github.com/users/Fuzzyma/repos","events_url":"https://api.github.com/users/Fuzzyma/events{/privacy}","received_events_url":"https://api.github.com/users/Fuzzyma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-28T11:23:35Z","updated_at":"2016-07-28T11:25:37Z","closed_at":null,"body":"I wrote a concole command which makes use of the `setHidden` feature to enter passwords.\r\nWhen I wanted to test this command I came across a strange issue. My phpunit was stopping and hanging in the `hiddeninput.exe` process. Obviously the console was waiting for input.\r\n`hiddeninput.exe` ignored my input given by\r\n\r\n```php\r\n$command->setHelperSet($this->getHelperSet(\"SomeRandomInputString\\n\"));\r\n```\r\n\r\nI then was able to \"unfreeze\" my console by just giving the desired input to the console (just pressing enter in this case).\r\n\r\nI uploaded an example project which comes with a command and a test to show this issue.\r\nJust clone it, run `composer install` and `phpunit` to reproduce:\r\nhttps://github.com/Fuzzyma/hidden-input-bug\r\n\r\n\r\nPS: A pic showing what my console is doing:\r\n\r\n![hiddeninput](https://cloud.githubusercontent.com/assets/3540542/17210916/5afabefc-54c6-11e6-8b5d-e75a1a51d122.PNG)\r\n\r\nAt the bottom you can see the process which runs at the moment"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/235868748","html_url":"https://github.com/symfony/symfony/issues/19463#issuecomment-235868748","issue_url":"https://api.github.com/repos/symfony/symfony/issues/19463","id":235868748,"user":{"login":"stof","id":439401,"avatar_url":"https://avatars.githubusercontent.com/u/439401?v=3","gravatar_id":"","url":"https://api.github.com/users/stof","html_url":"https://github.com/stof","followers_url":"https://api.github.com/users/stof/followers","following_url":"https://api.github.com/users/stof/following{/other_user}","gists_url":"https://api.github.com/users/stof/gists{/gist_id}","starred_url":"https://api.github.com/users/stof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stof/subscriptions","organizations_url":"https://api.github.com/users/stof/orgs","repos_url":"https://api.github.com/users/stof/repos","events_url":"https://api.github.com/users/stof/events{/privacy}","received_events_url":"https://api.github.com/users/stof/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T11:25:37Z","updated_at":"2016-07-28T11:25:37Z","body":"This is logical, because ``hiddeninput.exe`` does not use stdin to ask for the value (because stdin cannot be hidden on windows)"}}
{"actor":{"display_login":"stof"}}