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

[stable28] Fix remaining readdir() calls in loops with undesirable false evaluation potential #49227

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Nov 12, 2024

Backport of #38630

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@@ -261,7 +261,7 @@
}

$dh = $this->opendir($path);
while ($file = readdir($dh)) {
while (($file = readdir($dh)) !== false) {

Check notice

Code scanning / Psalm

PossiblyFalseArgument Note

Argument 1 of readdir cannot be false, possibly resource value expected
@@ -527,7 +527,7 @@
}

$dh = $this->opendir($source);
while ($file = readdir($dh)) {
while (($file = readdir($dh)) !== false) {

Check notice

Code scanning / Psalm

PossiblyFalseArgument Note

Argument 1 of readdir cannot be false, possibly resource value expected
@yemkareems yemkareems marked this pull request as ready for review November 12, 2024 13:20
@yemkareems yemkareems self-requested a review November 12, 2024 15:44
@susnux susnux merged commit d9a54f7 into stable28 Nov 12, 2024
67 of 71 checks passed
@susnux susnux deleted the backport/38630/stable28 branch November 12, 2024 16:54
@skjnldsv skjnldsv mentioned this pull request Nov 27, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants