Bug #81031 [NEW]: DirectoryIterator show duplicate listing on mergerfs

From: Date: Tue, 11 May 2021 22:35:11 +0000
Subject: Bug #81031 [NEW]: DirectoryIterator show duplicate listing on mergerfs
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233788@lists.php.net to get a copy of this message
From: wowkise at gmail dot com Operating system: Linux PHP version: Irrelevant Package: *Directory/Filesystem functions Bug Type: Bug Bug description:DirectoryIterator show duplicate listing on mergerfs Description: ------------ Using DirectoryIterator on path that uses mergerfs[1] as underlying fs system causes the returned results to be duplicated. Using other file system related scan function does not show the same problems. i.e. scandir works perfectly. 1: https://github.com/trapexit/mergerfs Test script: --------------- php -r 'foreach( new DirectoryIterator('/path/to/mergerfs') as $it) echo $it->getFilename().PHP_EOL;' Expected result: ---------------- dir1 dir2 dir3 Actual result: -------------- dir1 dir2 dir3 dir1 dir2 dir3 -- Edit bug report at https://bugs.php.net/bug.php?id=81031&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81031&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81031&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81031&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81031&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81031&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81031&r=support Expected behavior: https://bugs.php.net/fix.php?id=81031&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81031&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81031&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81031&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81031&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81031&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81031&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81031&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81031&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81031&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81031&r=mysqlcfg

« previous php.bugs (#233788) next »