[php-src] Issue #11597: ftp cannot be rewound
| From: | mvorisek | Date: | Wed, 05 Jul 2023 10:03:59 +0000 |
| Subject: | [php-src] Issue #11597: ftp cannot be rewound | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244881@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11597
Author: mvorisek
### Description
The following code:
```php
<?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