php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75536 FilesystemIterator forces SKIP_DOTS flag
Submitted: 2017-11-18 10:01 UTC Modified: -
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: aaatoja at o2 dot pl Assigned:
Status: Open Package: SPL related
PHP Version: 7.1.11 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-11-18 10:01 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 18:01:35 2019 UTC