• Hi,

    I ran a compatibility test for PHP 7.1 as I was about to upgrade on my hosting, but got all these warnings (probably an old Guzzle version?) when I was checking for a compatibility test:

    Have you tested on php 7.1? Would it be safe to upgrade?

    Thanks!

    FILE: /home/user/public_html/domain.com/wp-content/plugins/amazon-s3-and-cloudfront/vendor/Aws2/guzzle/guzzle/src/Guzzle/Service/Resource/CompositeResourceIteratorFactory.php
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     3 | ERROR | 'resource' is a reserved keyword as of PHP version 7.0 and cannot be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/user/public_html/domain.com/wp-content/plugins/amazon-s3-and-cloudfront/vendor/Aws2/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorFactoryInterface.php
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     3 | ERROR | 'resource' is a reserved keyword as of PHP version 7.0 and cannot be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/user/public_html/domain.com/wp-content/plugins/amazon-s3-and-cloudfront/vendor/Aws2/guzzle/guzzle/src/Guzzle/Service/Resource/Model.php
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
     3 | ERROR | 'resource' is a reserved keyword as of PHP version 7.0 and cannot be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/user/public_html/domain.com/wp-content/plugins/amazon-s3-and-cloudfront/vendor/Aws2/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorInterface.php
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     3 | ERROR | 'resource' is a reserved keyword as of PHP version 7.0 and cannot be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/user/public_html/domain.com/wp-content/plugins/amazon-s3-and-cloudfront/vendor/Aws2/guzzle/guzzle/src/Guzzle/Service/Resource/MapResourceIteratorFactory.php
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     3 | ERROR | 'resource' is a reserved keyword as of PHP version 7.0 and cannot be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/user/public_html/domain.com/wp-content/plugins/amazon-s3-and-cloudfront/vendor/Aws2/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIterator.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Viewing 1 replies (of 1 total)
  • Plugin Contributor ianmjones

    (@ianmjones)

    TL;DR: Not an issue, but we’ll hopefully quieten these validators in the next release of WP Offload S3 Lite.

    We have tested the version you have on PHP 5.3 all the way through to PHP 7.2 (yes, it takes a while).

    These are false positives, indeed related to an older version of Guzzle bundled with the AWS PHP SDK v2.

    We’re in the process of switching to AWS PHP SDK v3, hopefully tools like the one you use won’t raise issues with it as there’s a much newer (and quite different) Guzzle library bundled.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP 7.1 Compatibility’ is closed to new replies.