src/mg/Ding/Resource/Impl/FilesystemResource.php
public function getStream()
    {
        if ($this->fd === false) {
            $this->fd
                = $this->context === false
                ? @fopen($this->getURL(), 'r', false)
                : @fopen($this->getURL(), 'r', false, $this->context);
            if ($this->fd === false) {
                throw new ResourceException('Could not open: ' . $this->filename);
            }
        }
        return $this->fd;
    }
public function getStream()
    {
        if ($this->fd === false) {
            $this->fd
                = $this->context === false
                ? @fopen($this->getURL(), 'r', false)
                : @fopen($this->getURL(), 'r', false, $this->context);
            if ($this->fd === false) {
                throw new ResourceException('Could not open: ' . $this->filename);
            }
        }
        return $this->fd;
    }
(non-PHPdoc)
@see Ding\Resource.IResource::getStream()