src/Debug/FileStreamWrapper.php
public function dir_opendir($path, $options = 0)
    {
        if ($this->handle) {
            return false;
        }
        // "use" our function params so things don't complain
        array($options);
        self::restorePrev();
        $this->handle = \opendir($path);
        self::register();
        return $this->handle !== false;
    }
public function dir_opendir($path, $options = 0)
    {
        if ($this->handle) {
            return false;
        }
        // "use" our function params so things don't complain
        array($options);
        self::restorePrev();
        $this->handle = \opendir($path);
        self::register();
        return $this->handle !== false;
    }
Opens a directory for reading

@param string  $path    Specifies the URL that was passed to opendir().
@param integer $options Whether or not to enforce safe_mode (0x04).

@return boolean

@see http://php.net/manual/en/streamwrapper.dir-opendir.php