php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: themizzi at me dot com
New email:
PHP Version: OS:

 

 [2020-10-13 02:02 UTC] themizzi at me dot com
Description:
------------
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: https://github.com/themizzi/wsl2-php-recursive-directory-iterator-bug

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

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

Patches

Pull Requests

History

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

Keep an eye on https://github.com/microsoft/WSL/issues/5074.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 16:01:29 2024 UTC