title: PHP CLI application debug in ZendStudio (STDIN)
body: <p>0</p>
  
  <p>I am trying to debug php CLI using Zend Studio. My problem: I can't get user input from keyboard.</p>
  
  <p>This is part of code (method in some class):</p>
  
  <pre><code>public function getInput($promt = null, $defaultValue = null) {
      if(!isset($promt)){
          $promt = self::$DEFAULT_PROMPT;
      }
      echo $promt;
      $stdin = fopen ( "php://stdin", "r" );  
      $val = fgets ( $stdin );
      return $val;
  }
  </code></pre>
  
  <p>So ZS walks through code quite ok, but it stops at $val=fgets() And I have no clue where am I supposed to enter something from keyboard. I tried in console, and everywhere, I chacked debug configuration (Allocate console = on) etc.</p>
  
  <p>HELP!</p>