Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FilesystemIterator::__construct doc for php 8.2 #2081

Merged
merged 5 commits into from
Dec 16, 2022

Conversation

jawira
Copy link
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
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!

reference/spl/filesystemiterator/construct.xml Outdated Show resolved Hide resolved
appendices/migration82/incompatible.xml Outdated Show resolved Hide resolved
reference/spl/filesystemiterator/current.xml Show resolved Hide resolved
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