Title: PHP 7.0 Compatibility Code Issues
Last modified: June 16, 2017

---

# PHP 7.0 Compatibility Code Issues

 *  Resolved [staceybl](https://wordpress.org/support/users/staceybl/)
 * (@staceybl)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-7-0-compatibility-code-issues/)
 * Hi,
 * Thank you for creating this plugin it has been really helpful in backing up our
   site on a daily basis.
 * Planning on switching to PHP 7 and ran the PHP Compatibility Checker for PHP 
   7.0 compatibility and it found a few issues, see below. Was wondering if you 
   have plans to update the code to be completely PHP 7 compatible?
 * Thanks
 * FILE: /home/wp_buzrx8/xenoninc.com/wp-content/plugins/dreamobjects/aws/Doctrine/
   Common/Persistence/Proxy.php
    ——————————————————————————————————————————————————
   FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ——————————————————————————————————————————————————
   51 | WARNING | Method name “Proxy::__load” is discouraged; PHP has reserved all
   method names with a double underscore prefix for future use 58 | WARNING | Method
   name “Proxy::__isInitialized” is discouraged; PHP has reserved all method names
   with a double underscore prefix for future use ——————————————————————————————————————————————————
 * FILE: /home/wp_buzrx8/xenoninc.com/wp-content/plugins/dreamobjects/aws/Doctrine/
   Common/Proxy/Proxy.php
    ———————————————————————————————————————————————————- 
   FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES ———————————————————————————————————————————————————-
   41 | WARNING | Method name “Proxy::__setInitialized” is discouraged; PHP has 
   reserved all method names with a double underscore prefix for future use 53 |
   WARNING | Method name “Proxy::__setInitializer” is discouraged; PHP has reserved
   all method names with a double underscore prefix for future use 62 | WARNING 
   | Method name “Proxy::__getInitializer” is discouraged; PHP has reserved all 
   method names with a double underscore prefix for future use 72 | WARNING | Method
   name “Proxy::__setCloner” is discouraged; PHP has reserved all method names with
   a double underscore prefix for future use 81 | WARNING | Method name “Proxy::
   __getCloner” is discouraged; PHP has reserved all method names with a double 
   underscore prefix for future use 89 | WARNING | Method name “Proxy::__getLazyProperties”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use ———————————————————————————————————————————————————-
 * FILE: /home/wp_buzrx8/xenoninc.com/wp-content/plugins/dreamobjects/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: /home/wp_buzrx8/xenoninc.com/wp-content/plugins/dreamobjects/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: /home/wp_buzrx8/xenoninc.com/wp-content/plugins/dreamobjects/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: /home/wp_buzrx8/xenoninc.com/wp-content/plugins/dreamobjects/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: /home/wp_buzrx8/xenoninc.com/wp-content/plugins/dreamobjects/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: /home/wp_buzrx8/xenoninc.com/wp-content/plugins/dreamobjects/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: /home/wp_buzrx8/xenoninc.com/wp-content/plugins/dreamobjects/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: /home/wp_buzrx8/xenoninc.com/wp-content/plugins/dreamobjects/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: /home/wp_buzrx8/xenoninc.com/wp-content/plugins/dreamobjects/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)——————————————————————————————————————————————————————-

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-7-0-compatibility-code-issues/#post-9243200)
 * That’s due to the php sdk from Amazon being weird :/
 * It does work, but the new sdk requires a full rewrite to remove the warnings 
   and it’s not inconsequential work.

Viewing 1 replies (of 1 total)

The topic ‘PHP 7.0 Compatibility Code Issues’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dreamobjects_4297bf.svg)
 * [DreamObjects Backups](https://wordpress.org/plugins/dreamobjects/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dreamobjects/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dreamobjects/)
 * [Active Topics](https://wordpress.org/support/plugin/dreamobjects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dreamobjects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dreamobjects/reviews/)

## Tags

 * [php-7](https://wordpress.org/support/topic-tag/php-7/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/php-7-0-compatibility-code-issues/#post-9243200)
 * Status: resolved