title: Composer installation error - output is not a tty, input is not a tty
body: <p>I am trying to install composer through php, as described in their wesite.</p>
  
  <pre><code>php -r "readfile('https://getcomposer.org/installer');" | php
  </code></pre>
  
  <p>But it is displaying the following error:</p>
  
  <pre><code>$ php -r "readfile('https://getcomposer.org/installer');" | php
  output is not a tty
  input is not a tty
  </code></pre>
  
  <p>I am in windows 7 and using git bash to execute this command. At windows command prompt, it is working fine. This problem is only occur when I run this command from git bash 2.6.2-64bit.</p>
  
  <p>BTW, I have installed composer for windows, and that is working fine. But I can not download composer.phar in this way. How can I fix this issue?</p>