awssdk2 PHP7 compatibility

Created on 11 October 2019, over 5 years ago
Updated 14 January 2025, 5 months ago

So the 2.13 release of this module uses the AWS SDK library version 2.7.25.

When I run the library code through a compatibility linter, I get several following warnings like the following:

FILE: ...ic/sites/all/libraries/awssdk2/Guzzle/Service/Resource/Model.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 3 | WARNING | 'resource' is a soft reserved keyword as of PHP
   |         | version 7.0 and should not be used to name a class,
   |         | interface or trait or as part of a namespace
   |         | (T_NAMESPACE)
----------------------------------------------------------------------

and

FILE: ...tes/all/libraries/awssdk2/Aws/DynamoDb/Iterator/ItemIterator.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 109 | WARNING | Function each() is deprecated since PHP 7.2; Use a
     |         | foreach loop instead
----------------------------------------------------------------------

There are more than just these two, but all of the same category of warning. I've tried updating to the latest 2.x release, which is 2.8.31, but I get the same warnings.

Can anyone confirm that the 2.7.25 release of the AWS SDK runs on PHP 7.2+? The deprecation warnings tells me it's likely to generate a lot of log messages, but no fatal errors per se.

πŸ’¬ Support request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bburg Washington D.C.

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States cmlara

    Drupal 7 end-of-life triage:
    Drupal 7 reached end of life on January 5th.

    The 7.x branches of S3FS do not have any additional planned releases.

    The requests in this issue do not appear to exist in the 8.x-3.x and newer branches.

Production build 0.71.5 2024