original_string: public function stream_open($path, $mode, $options, &$openedPath)
      {
          $this->initProtocol($path);
          $this->mode = $mode;
  
          if ($mode === 'r') {
              return $this->initReadableStream();
          }
  
          if ($mode === 'w') {
              return $this->initWritableStream();
          }
  
          return false;
      }
code: public function stream_open($path, $mode, $options, &$openedPath)
      {
          $this->initProtocol($path);
          $this->mode = $mode;
  
          if ($mode === 'r') {
              return $this->initReadableStream();
          }
  
          if ($mode === 'w') {
              return $this->initWritableStream();
          }
  
          return false;
      }
code_tokens: public function stream_open ( $ path , $ mode , $ options , & $ openedPath ) { $ this -> initProtocol ( $ path ) ; $ this -> mode = $ mode ; if ( $ mode === 'r' ) { return $ this -> initReadableStream ( ) ; } if ( $ mode === 'w' ) { return $ this -> initWritableStream ( ) ; } return false ; }
docstring: Opens the stream.
  
  @see http://php.net/manual/en/streamwrapper.stream-open.php
  @param string  $path       Path to the file resource
  @param string  $mode       Mode used to open the file (only "r" and "w" are supported)
  @param integer $options    Additional flags set by the streams API
  @param string  $openedPath Not used
docstring_tokens: Opens the stream .