src/mg/Ding/Resource/Impl/URLResource.php
public function getStream()
    {
        if ($this->_fd === false) {
            $this->_fd
                = $this->_context === false
                ? @fopen($this->_filename, 'r', false)
                : @fopen($this->_filename, '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->_filename, 'r', false)
                : @fopen($this->_filename, '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()