Bug #80227 [Opn->Nab]: RecursiveDirectoryIterator returns incorrect results for Docker Desktop on WSL2

From: Date: Tue, 13 Oct 2020 02:40:41 +0000
Subject: Bug #80227 [Opn->Nab]: RecursiveDirectoryIterator returns incorrect results for Docker Desktop on WSL2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229589@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80227&edit=1 ID: 80227 Updated by: requinix@php.net Reported by: themizzi at me dot com Summary: RecursiveDirectoryIterator returns incorrect results for Docker Desktop on WSL2 -Status: Open +Status: Not a bug Type: Bug Package: *Directory/Filesystem functions Operating System: alpine PHP Version: 7.3.23 Block user comment: N Private report: N New Comment: This is a WSL bug. Keep an eye on https://github.com/microsoft/WSL/issues/5074. Previous Comments: ------------------------------------------------------------------------ [2020-10-13 02:02:20] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80227&edit=1

« previous php.bugs (#229589) next »