Skip to content

ext/standard: Validate scandir() sorting_order parameter#21203

Open
arshidkv12 wants to merge 7 commits intophp:masterfrom
arshidkv12:dir-flag
Open

ext/standard: Validate scandir() sorting_order parameter#21203
arshidkv12 wants to merge 7 commits intophp:masterfrom
arshidkv12:dir-flag

Conversation

@arshidkv12
Copy link
Contributor

No description provided.

Z_PARAM_RESOURCE_OR_NULL(zcontext)
ZEND_PARSE_PARAMETERS_END();

if (flags != PHP_SCANDIR_SORT_ASCENDING &&
Copy link
Member

Choose a reason for hiding this comment

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

Couldn't we just check this at the condition further down to not duplicate the checks?

@Girgias
Copy link
Member

Girgias commented Feb 15, 2026

Duplicate of #19373

When I sent you the list via email I did say that some might have already been worked on. Please check before hand and coordinate with other people.

@arshidkv12
Copy link
Contributor Author

Thank you for the reminder. Sorry for the duplicate of #19373.
I’ll make sure to check existing issues first and coordinate with others before working on or submitting anything in the future.

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.

3 participants