original_string: public function write($str)
      {
          if (!is_resource($this->pipes['in'])) {
              throw new Exception_SystemProcessIO("stdin is closed or haven't been opened. Cannot write to process");
          }
          $this->debug('writing '.$str.'+newline into stdin');
          fwrite($this->pipes['in'], $str."\n");
          $this->debugStatus();
  
          return $this;
      }
code: public function write($str)
      {
          if (!is_resource($this->pipes['in'])) {
              throw new Exception_SystemProcessIO("stdin is closed or haven't been opened. Cannot write to process");
          }
          $this->debug('writing '.$str.'+newline into stdin');
          fwrite($this->pipes['in'], $str."\n");
          $this->debugStatus();
  
          return $this;
      }
code_tokens: public function write ( $ str ) { if ( ! is_resource ( $ this -> pipes [ 'in' ] ) ) { throw new Exception_SystemProcessIO ( "stdin is closed or haven't been opened. Cannot write to process" ) ; } $ this -> debug ( 'writing ' . $ str . '+newline into stdin' ) ; fwrite ( $ this -> pipes [ 'in' ] , $ str . "\n" ) ; $ this -> debugStatus ( ) ; return $ this ; }
docstring: Sends string to process, but process will wait for more input. Always
  adds newline at the end.
  
  @param string $str any input data.
  
  @return self
docstring_tokens: Sends string to process but process will wait for more input . Always adds newline at the end .