Skip to content

Throw ValueError when a wrong flag value is provided to the second argument of scandir()#19373

Merged
alexandre-daubois merged 2 commits intophp:masterfrom
alexandre-daubois:scandir-wrong-flags
Apr 10, 2026
Merged

Throw ValueError when a wrong flag value is provided to the second argument of scandir()#19373
alexandre-daubois merged 2 commits intophp:masterfrom
alexandre-daubois:scandir-wrong-flags

Conversation

@alexandre-daubois
Copy link
Copy Markdown
Member

@alexandre-daubois alexandre-daubois commented Aug 5, 2025

Part of https://wiki.php.net/rfc/deprecations_php_8_6 Not anymore with the new policy

@Girgias
Copy link
Copy Markdown
Member

Girgias commented Apr 6, 2026

No longer requires an RFC with the policy change, could you rebase?

@alexandre-daubois alexandre-daubois force-pushed the scandir-wrong-flags branch 2 times, most recently from 4dd8b1e to 8ff8767 Compare April 8, 2026 12:16
Copy link
Copy Markdown
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Will need NEWS entry yes because that's apparently what we are doing now.

@alexandre-daubois alexandre-daubois changed the base branch from master to PHP-8.4 April 8, 2026 12:17
@alexandre-daubois alexandre-daubois force-pushed the scandir-wrong-flags branch 2 times, most recently from d47a4d9 to aa8ce38 Compare April 8, 2026 12:19
@alexandre-daubois
Copy link
Copy Markdown
Member Author

alexandre-daubois commented Apr 8, 2026

Alright! I rebased on 8.4. I couldn't find in the RFC if this kind of change should target patch or minor versions, but I assume this is considered a bug fix now?

I have my answer 😄

@alexandre-daubois alexandre-daubois changed the base branch from PHP-8.4 to master April 8, 2026 12:23
Copy link
Copy Markdown
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Still requires an UPGRADING entry ideally :)

@alexandre-daubois
Copy link
Copy Markdown
Member Author

Ah yes, makes sense now that it targets master. I also removed the entry from https://wiki.php.net/rfc/deprecations_php_8_6

@alexandre-daubois alexandre-daubois merged commit 168fef3 into php:master Apr 10, 2026
19 checks passed
@alexandre-daubois alexandre-daubois deleted the scandir-wrong-flags branch April 10, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants