|  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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 19:01:28 2024 UTC