|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80227 RecursiveDirectoryIterator returns incorrect results for Docker Desktop on WSL2
Submitted: 2020-10-13 02:02 UTC Modified: 2020-10-13 02:40 UTC
From: themizzi at me dot com Assigned:
Status: Not a bug Package: *Directory/Filesystem functions
PHP Version: 7.3.23 OS: alpine
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: themizzi at me dot com
New email:
PHP Version: OS:


 [2020-10-13 02:02 UTC] themizzi at me dot com
The RecursiveDirectoryIterator returns an incomplete list of files after some limit when running under Docker Desktop on WSL2. It works fine when using Hyper V.

Test script:
This repository reproduces this issue:

Expected result:
file counts should never diverge and program should exit after $stop

Actual result:
file counts diverge from scandir after 65 files.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-13 02:40 UTC]
-Status: Open +Status: Not a bug
 [2020-10-13 02:40 UTC]
This is a WSL bug.

Keep an eye on
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 30 12:01:25 2023 UTC