Skip to content

[Bug#7535] : Message Fix #7537

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

[Bug#7535] : Message Fix #7537

wants to merge 1 commit into from

Conversation

rghvgrv
Copy link

@rghvgrv rghvgrv commented Jul 24, 2025

Bug#7535

This pull request is for

  1. $check is the result of $this->s3client->listObjectsV2(), which returns an array with metadata about the bucket and, if present, a Contents key containing the objects.
  2. count($check) will always be at least 1 (because it's an array with metadata), even if the bucket is empty.
  3. To check if the bucket is empty, you should check if the Contents key exists and if it contains any objects.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the PHP This issue relates to the AWS SDK for PHP label Jul 24, 2025
@brmur brmur requested a review from beqqrry-aws July 25, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PHP This issue relates to the AWS SDK for PHP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant