8000 [Finder] ErrorException with FTP use · Issue #7834 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Finder] ErrorException with FTP use #7834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mehdichaouch opened this issue Apr 24, 2013 · 2 comments
Closed

[Finder] ErrorException with FTP use #7834

mehdichaouch opened this issue Apr 24, 2013 · 2 comments
Labels

Comments

@mehdichaouch
Copy link

Hello,

Finder seems not to work with FTP. I use it as describe in Finder doc like this :

$finder->in('ftp://example.com/pub/');

but I get this error :

[ErrorException]
Warning: FilesystemIterator::rewind(): stream does not support seeking
in D:\www\vendor\symfony\symfony\src\Symfony\Component\Finder\Iterator\FilterIterator.php line 35

Local use of in like this work, so do you have any idea ??

->in('bundles/AcmeDemo/');
@kaiwa
Copy link
kaiwa commented May 1, 2013

FYI #3585 #4335

@mehdichaouch
Copy link
Author

I saw these issues but I didn't understand the answer :S and why since a year isn't working.

fabpot added a commit that referenced this issue May 25, 2013
This PR was squashed before being merged into the 2.1 branch (closes

Discussion
----------

[Finder] Fix iteration fails with non-rewindable streams

<table>
  <tr>
    <th>Q</th><th>A</th>
  </tr>
  <tr>
    <td>Bug fix?</td><td>yes</td>
  </tr>
  <tr>
    <td>New feature?</td><td>no</td>
  </tr>
  <tr>
    <td>BC breaks?</td><td>no</td>
  </tr>
  <tr>
    <td>Deprecations?</td><td>no</td>
  </tr>
  <tr>
    <td>Tests pass?</td><td>yes</td>
  </tr>
  <tr>
    <td>Fixed tickets</td><td>#3585, #7834</td>
  </tr>
  <tr>
    <td>License?</td><td>MIT</td>
  </tr>
</table>

- [x] Add a good detection of non seekable stream
- [x] Add some unit tests

But the iteration under ftp stream still not work properly. Edit: need
tests for that.

Commits
-------

169c0b9 [Finder] Fix iteration fails with non-rewindable streams
@fabpot fabpot closed this as completed May 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
0