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;
    }
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;
    }
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 ; }
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
Opens the stream .