library/Rediska/Profiler/Stream.php
public function getStream()
    {
        if (!is_resource($this->_stream)) {
            $stream = $this->_stream;
            if (is_array($stream) && isset($stream['stream'])) {
                $stream = $stream['stream'];
            }

            if (! $this->_stream = @fopen($stream, $this->getMode(), false)) {
                throw new Rediska_Profiler_Exception("'$stream' cannot be opened with mode '{$this->getMode()}'");
            }
        }

        return $this->_stream;
    }
public function getStream()
    {
        if (!is_resource($this->_stream)) {
            $stream = $this->_stream;
            if (is_array($stream) && isset($stream['stream'])) {
                $stream = $stream['stream'];
            }

            if (! $this->_stream = @fopen($stream, $this->getMode(), false)) {
                throw new Rediska_Profiler_Exception("'$stream' cannot be opened with mode '{$this->getMode()}'");
            }
        }

        return $this->_stream;
    }
Get stream

@return stream