Skip to content

Update FilesystemIterator::__construct doc for php 8.2#2081

Merged
cmb69 merged 5 commits intophp:masterfrom
jawira:filesystemiterator_skip_dots
Dec 16, 2022
Merged

Update FilesystemIterator::__construct doc for php 8.2#2081
cmb69 merged 5 commits intophp:masterfrom
jawira:filesystemiterator_skip_dots

Conversation

@jawira
Copy link
Copy Markdown
Contributor

@jawira jawira commented Dec 14, 2022

Hello, I'm updating documentation for FilesystemIterator::__construct.

Before PHP 8.2 the FilesystemIterator::SKIP_DOTS was always set and couldn't be removed, this changed in PHP 8.2.
If you are using the default value for flags parameter then everything work as expected, but if you are using any other value you have to add FilesystemIterator::SKIP_DOTS to maintain old behavior.

You can see an example in https://3v4l.org/HrmZ2.

This already provoked a bug (see phingofficial/phing#1685), that's why I also updated documentation in "breaking changes" section.

This change was added in php/php-src@088e547 and as far as I know it's not part of any pull request, I suppose that's the reason it hasn't been documented yet.

Copy link
Copy Markdown
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

jawira and others added 3 commits December 15, 2022 17:35
use the full PHP version

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
use colon instead of comma

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
@jawira jawira force-pushed the filesystemiterator_skip_dots branch from 8232222 to c2668d1 Compare December 16, 2022 09:30
@cmb69 cmb69 merged commit a7d00d0 into php:master Dec 16, 2022
@jawira jawira deleted the filesystemiterator_skip_dots branch December 17, 2022 13:24
claudepache pushed a commit to claudepache/php-doc-en that referenced this pull request Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants