Patchwork\CodeManipulation\Stream::stream_open PHP Метод

stream_open() публичный Метод

public stream_open ( $path, $mode, $options, &$openedPath )
    public function stream_open($path, $mode, $options, &$openedPath)
    {
        $this->unwrap();
        $including = (bool) ($options & self::STREAM_OPEN_FOR_INCLUDE);
        if ($including && shouldTransform($path)) {
            $this->resource = transformAndOpen($path);
            $this->wrap();
            return true;
        }
        if (isset($this->context)) {
            $this->resource = fopen($path, $mode, $options, $this->context);
        } else {
            $this->resource = fopen($path, $mode, $options);
        }
        $this->wrap();
        return $this->resource !== false;
    }