Bug #80227 [NEW]: RecursiveDirectoryIterator returns incorrect results for Docker Desktop on WSL2
| From: | themizzi at me dot com | Date: | Tue, 13 Oct 2020 02:02:20 +0000 |
| Subject: | Bug #80227 [NEW]: RecursiveDirectoryIterator returns incorrect results for Docker Desktop on WSL2 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-229588@lists.php.net to get a copy of this message | ||
From: themizzi at me dot com
Operating system: alpine
PHP version: 7.3.23
Package: *Directory/Filesystem functions
Bug Type: Bug
Bug description:RecursiveDirectoryIterator returns incorrect results for Docker Desktop on WSL2
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 bug report at https://bugs.php.net/bug.php?id=80227&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80227&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80227&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80227&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80227&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80227&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80227&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80227&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80227&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80227&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80227&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80227&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80227&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80227&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80227&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80227&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80227&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80227&r=mysqlcfg