Title: PHP 7.0 compatible
Last modified: November 6, 2016

---

# PHP 7.0 compatible

 *  [mmdijkman](https://wordpress.org/support/users/mmdijkman/)
 * (@mmdijkman)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-0-compatible/)
 * Hello,
 * Can you tell me if this plugin is PHP 7.0 compatible please.
 * `FILE: /var/app/current/web/app/plugins/amazon-web-services/vendor/aws/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: /var/app/current/web/app/plugins/amazon-web-services/vendor/aws/Guzzle/
   Service/Resource/ResourceIterator.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: /var/app/current/web/app/plugins/amazon-web-services/vendor/aws/Guzzle/
   Service/Resource/MapResourceIteratorFactory.php
    ——————————————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————————-
 * Best regards,
 * Martijn

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Nicholas Griffin](https://wordpress.org/support/users/thetechnuttyuk/)
 * (@thetechnuttyuk)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-0-compatible/#post-8424803)
 * Just to expand upon this, I also used the PHP Compatibility Plugin and I am getting
   the following errors:
 *     ```
       FILE: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/amazon-web-services/vendor/aws/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: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/amazon-web-services/vendor/aws/Guzzle/Service/Resource/ResourceIteratorClassFactory.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: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/amazon-web-services/vendor/aws/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: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/amazon-web-services/vendor/aws/Guzzle/Service/Resource/ResourceIterator.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: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/amazon-web-services/vendor/aws/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: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/amazon-web-services/vendor/aws/Guzzle/Service/Resource/ResourceIteratorApplyBatched.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: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/amazon-web-services/vendor/aws/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: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/amazon-web-services/vendor/aws/Guzzle/Service/Resource/AbstractResourceIteratorFactory.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: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/amazon-web-services/vendor/aws/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: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/amazon-web-services/view/footer.php
       ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
       ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       ```
   
 *  [ahappy1](https://wordpress.org/support/users/ahappy1/)
 * (@ahappy1)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-0-compatible/#post-8829122)
 * did you guys start using this plugin on PHP7 ?
 *  [tonydjukic](https://wordpress.org/support/users/tonydjukic/)
 * (@tonydjukic)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-0-compatible/#post-8836675)
 * [@ahappy1](https://wordpress.org/support/users/ahappy1/)
 * I think the other posters, like myself, are considering a potential PHP upgrade/
   migration from 5.6 to 7 and seeing these errors come up is making us all give
   pause. I’ve got little option however as WPEngine is going to be moving a client’s
   site to a PHP7 powered Google service in a couple of weeks and this plugin is
   the only one throwing a major error.
 * Do we have a timeline on re-write/update? Basically there’s a class named ‘resource’
   that PHP7 won’t allow because it’s reserved. The class is listed 9 times in the
   plugin and it’s name and all references to it would need to be changed.
 *  [bpalombo](https://wordpress.org/support/users/bpalombo/)
 * (@bpalombo)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-0-compatible/#post-8887328)
 * Also looking for some compatibility on PHP7
 *  [tonydjukic](https://wordpress.org/support/users/tonydjukic/)
 * (@tonydjukic)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-0-compatible/#post-8890093)
 * So is this just not going to be commented on at all? 4 months in and not so much
   as a mention from the development team?
 *  [tonydjukic](https://wordpress.org/support/users/tonydjukic/)
 * (@tonydjukic)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-0-compatible/#post-8891430)
 * Ok… …so I was searching for a potential alternative for this plugin, but instead
   found this plugin on GitHub. Thought that maybe I could fork it, find the lines
   throwing errors, change them up and then maybe the devs would commit the ‘fixes’
   to an update.
 * What I discovered actually appears to be a lot simpler.
 * 1) All of the errors above listing the use of ‘resource’ as a keyword reserved
   by PHP7, turns out it’s not being used by the code itself, instead, it’s a directory
   in a file path that points to vendor resources on AWS. So I believe this is a
   false positive by WP Engine’s compatibility checker.
 * 2) The final error regarding the ‘footer.php’ file and
    `"No PHP code was found
   in this file and short open tags are not allowed"` …there is no PHP code and 
   short open tags aren’t being used – it’s simply a footer file with a closing 
   div tag, i.e.: `</div>`
 * I think it’s safe to say that this plugin isn’t throwing any actual compatibility
   errors. I’ve been wrong before and if it is, please, someone correct me, but 
   from what I can see, there was no ill effect on our PHP7 test site when utilizing
   it and I can’t find anything in the GitHub repository for the plugin that would
   indicate it is using ‘resource’ in a manner that would result in a conflict.
 *  [karlazz](https://wordpress.org/support/users/karlazz/)
 * (@karlazz)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-0-compatible/#post-8919063)
 * Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘PHP 7.0 compatible’ is closed to new replies.

 * ![](https://ps.w.org/amazon-web-services/assets/icon-256x256.png?rev=1024513)
 * [Amazon Web Services](https://wordpress.org/plugins/amazon-web-services/)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-web-services/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-web-services/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-web-services/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-web-services/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 7 replies
 * 6 participants
 * Last reply from: [karlazz](https://wordpress.org/support/users/karlazz/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-0-compatible/#post-8919063)
 * Status: not resolved