Skip to content

ftp cannot be rewound #11597

Open
Open
@mvorisek

Description

@mvorisek

Description

The following code:

<?php

$iter = new RecursiveDirectoryIterator('ftp://ftp.belnet.be/', \RecursiveDirectoryIterator::SKIP_DOTS);

var_dump($iter->current());
$iter->next();
var_dump($iter->current());
$iter->rewind();

Resulted in this output:

Warning: FilesystemIterator::rewind(): stream does not support seeking

But I expected this output instead:

support should not be related with seeking support

PHP Version

any

Operating System

any

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions