Bug #75536 [Opn]: FilesystemIterator forces SKIP_DOTS flag

From: Date: Fri, 15 Oct 2021 18:05:10 +0000
Subject: Bug #75536 [Opn]: FilesystemIterator forces SKIP_DOTS flag
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237227@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75536&edit=1

 ID:                 75536
 Updated by:         cmb@php.net
 Reported by:        aaatoja at o2 dot pl
 Summary:            FilesystemIterator forces SKIP_DOTS flag
 Status:             Open
 Type:               Bug
 Package:            SPL related
 PHP Version:        7.1.11
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

I can reproduce this with PHP-7.4.


Previous Comments:
------------------------------------------------------------------------
[2017-11-18 10:01:25] aaatoja at o2 dot pl

Description:
------------
Hello. Was this bug fixed? 
https://bugs.php.net/bug.php?id=64228

It is still present on 7.1.11.


Test script:
---------------
$dir = new FilesystemIterator(__DIR__, 0);
var_dump($dir->getFlags()); //4096

$dir = new FilesystemIterator(__DIR__, 0);
$dir->setFlags(0);
var_dump($dir->getFlags()); //0 but . and .. are skipped

Expected result:
----------------
Constructor should apply passed flags.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=75536&edit=1


Thread (3 messages)

« previous php.bugs (#237227) next »