Make sure that all the objects are retrieved. The listObjects function is limited to 1000 objects so if the bucket contains more than those objects then some of them will not be retrieved when using the listObjects function. An iterator is used instead as suggested in the AmazonS3 developer guide: http://docs.aws.amazon.com/AmazonS3/latest/dev/ListingObjectKeysUsingPHP.html
Make sure that all the objects are retrieved. The listObjects function is limited to 1000 objects so if the bucket contains more than those objects then some of them will not be retrieved when using the listObjects function. An iterator is used instead as suggested in the AmazonS3 developer guide: http://docs.aws.amazon.com/AmazonS3/latest/dev/ListingObjectKeysUsingPHP.html