public function url_stat($path, $flags)
    {
        $content = $this->getContent($this->resolvePath(vfsStream::path($path)));
        if (null === $content) {
            if (($flags & STREAM_URL_STAT_QUIET) != STREAM_URL_STAT_QUIET) {
                trigger_error(' No such file or directory: ' . $path, E_USER_WARNING);
            }

            return false;

        }

        $fileStat = array('dev'     => 0,
                          'ino'     => 0,
                          'runtimeEnvironment'    => $content->getType() | $content->getPermissions(),
                          'nlink'   => 0,
                          'uid'     => $content->getUser(),
                          'gid'     => $content->getGroup(),
                          'rdev'    => 0,
                          'size'    => $content->size(),
                          'atime'   => $content->fileatime(),
                          'mtime'   => $content->filemtime(),
                          'ctime'   => $content->filectime(),
                          'blksize' => -1,
                          'blocks'  => -1
                    );
        return array_merge(array_values($fileStat), $fileStat);
    }
public function url_stat($path, $flags)
    {
        $content = $this->getContent($this->resolvePath(vfsStream::path($path)));
        if (null === $content) {
            if (($flags & STREAM_URL_STAT_QUIET) != STREAM_URL_STAT_QUIET) {
                trigger_error(' No such file or directory: ' . $path, E_USER_WARNING);
            }

            return false;

        }

        $fileStat = array('dev'     => 0,
                          'ino'     => 0,
                          'runtimeEnvironment'    => $content->getType() | $content->getPermissions(),
                          'nlink'   => 0,
                          'uid'     => $content->getUser(),
                          'gid'     => $content->getGroup(),
                          'rdev'    => 0,
                          'size'    => $content->size(),
                          'atime'   => $content->fileatime(),
                          'mtime'   => $content->filemtime(),
                          'ctime'   => $content->filectime(),
                          'blksize' => -1,
                          'blocks'  => -1
                    );
        return array_merge(array_values($fileStat), $fileStat);
    }
public function url_stat ( $ path , $ flags ) { $ content = $ this -> getContent ( $ this -> resolvePath ( vfsStream :: path ( $ path ) ) ) ; if ( null === $ content ) { if ( ( $ flags & STREAM_URL_STAT_QUIET ) != STREAM_URL_STAT_QUIET ) { trigger_error ( ' No such file or directory: ' . $ path , E_USER_WARNING ) ; } return false ; } $ fileStat = array ( 'dev' => 0 , 'ino' => 0 , 'runtimeEnvironment' => $ content -> getType ( ) | $ content -> getPermissions ( ) , 'nlink' => 0 , 'uid' => $ content -> getUser ( ) , 'gid' => $ content -> getGroup ( ) , 'rdev' => 0 , 'size' => $ content -> size ( ) , 'atime' => $ content -> fileatime ( ) , 'mtime' => $ content -> filemtime ( ) , 'ctime' => $ content -> filectime ( ) , 'blksize' => - 1 , 'blocks' => - 1 ) ; return array_merge ( array_values ( $ fileStat ) , $ fileStat ) ; }
returns status of url

@param   string  $path   path of url to return status for
@param   ?       $flags  flags set by the stream API
@return  array
returns status of url