-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Finder] File listing broken on non Filesystem (ftp in my case) due to 2.8.3 changes #18013
Comments
+1 for example this breaks the following: $finder = new Finder();
$finder->depth(0);
foreach ($finder->sortByName()->in('ftp://user@localhost/') as $file) {
// ...
} |
What error do you get now? |
not sure what you mean. Currently you won't get an error/exception, but you also get no listing of ftp remote streams. |
Full example:
Output
As you can see in SF 2.8.3 the Finder doesn't find everything... |
I created a gist (https://gist.github.com/smurfy/42490192431342614797) to reproduce. Breaks on php 5.4.16 (cent os) and php 5.5.9 (ubuntu) |
Looks like three first files are always excluded (just confirmed this with another ftp). I'll work on a fix. |
This PR was merged into the 2.3 branch. Discussion ---------- [Finder] Partially revert #17134 to fix a regression | Q | A | ------------- | --- | Branch | 2.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #18013 | License | MIT | Doc PR | - Commits ------- ead1824 [Finder] Partially revert #17134 to fix a regression
The commit cba206a removes the RecursiveDirectoryIterator check and only does the FilesystemIterator check in
FilterIterator
in therewind
methodThis breaks file listing on ftp connections and probably all non Filesystem listings.
Solution would be revert this part of the commit.
The text was updated successfully, but these errors were encountered: