Title: PHP Compatibility
Last modified: July 10, 2017

---

# PHP Compatibility

 *  Resolved [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/php-compatibility-5/)
 * I ran the PHP Compatibility Checker plugin [https://wordpress.org/plugins/php-compatibility-checker/](https://wordpress.org/plugins/php-compatibility-checker/)
   
   checking for PHP 7 compatibility and got this result for this plugin:
 *     ```
       FILE: wp-content/plugins/backwpup/vendor/PEAR/HTTP/Request2.php
       ------------------------------------------------------------------------------------
       FOUND 2 ERRORS AFFECTING 2 LINES
       ------------------------------------------------------------------------------------
        929 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
        944 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
       ------------------------------------------------------------------------------------
   
       FILE: wp-content/plugins/backwpup/vendor/OpenCloud/ObjectStore/Resource/Account.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/ObjectStore/Resource/AbstractResource.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/ObjectStore/Resource/ContainerMetadata.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/ObjectStore/Resource/Container.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/ObjectStore/Resource/AbstractContainer.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/ObjectStore/Resource/CDNContainer.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/ObjectStore/Resource/DataObject.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/Common/Resource/BaseResource.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/Common/Resource/NovaResource.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/Common/Resource/ReadOnlyResource.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/Common/Resource/PersistentResource.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/Identity/Resource/User.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/Identity/Resource/Token.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/Identity/Resource/Tenant.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/OpenCloud/Identity/Resource/Role.php
       ------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       ------------------------------------------------------------------------------------
        18 | 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: wp-content/plugins/backwpup/vendor/SwiftMailer/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
       ------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       ------------------------------------------------------------------------------------
        509 | ERROR | Bitwise shifts by negative number will throw an ArithmeticError in PHP 7.0
       ------------------------------------------------------------------------------------
   
       FILE: wp-content/plugins/backwpup/vendor/SwiftMailer/classes/Swift/Transport/SimpleMailInvoker.php
       ------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       ------------------------------------------------------------------------------------
        33 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
       ------------------------------------------------------------------------------------
   
       FILE: wp-content/plugins/backwpup/vendor/SwiftMailer/classes/Swift/KeyCache/DiskKeyCache.php
       ------------------------------------------------------------------------------------
       FOUND 4 ERRORS AFFECTING 4 LINES
       ------------------------------------------------------------------------------------
        180 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
        187 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
        207 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
        213 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
       ------------------------------------------------------------------------------------
   
       FILE: wp-content/plugins/backwpup/vendor/SwiftMailer/classes/Swift/ByteStream/FileByteStream.php
       ------------------------------------------------------------------------------------
       FOUND 2 ERRORS AFFECTING 2 LINES
       ------------------------------------------------------------------------------------
        87 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
        91 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
       ------------------------------------------------------------------------------------
   
       FILE: wp-content/plugins/backwpup/vendor/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: wp-content/plugins/backwpup/vendor/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: wp-content/plugins/backwpup/vendor/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: wp-content/plugins/backwpup/vendor/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: wp-content/plugins/backwpup/vendor/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: wp-content/plugins/backwpup/vendor/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: wp-content/plugins/backwpup/vendor/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: wp-content/plugins/backwpup/vendor/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: wp-content/plugins/backwpup/vendor/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)
       ------------------------------------------------------------------------------------
       ```
   

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

 *  [happyAnt](https://wordpress.org/support/users/duongcuong96/)
 * (@duongcuong96)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/php-compatibility-5/#post-9306950)
 * Hi [@joyously](https://wordpress.org/support/users/joyously/),
    We can confirm
   that BackWPUp working fine from 5.4 to the latest version( currently, 7.1). So
   you do not need to worry about that 🙂 Hope that info helps you and thanks for
   report us about that :), Cuong
 *  [happyAnt](https://wordpress.org/support/users/duongcuong96/)
 * (@duongcuong96)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/php-compatibility-5/#post-9332314)
 * Hi [@joyously](https://wordpress.org/support/users/joyously/),
    Since we haven’t
   heard back from you so we closed it in here. If you have any question or issue
   about PHP compatibility with BackWPUp, feel free to open this topic 🙂 Have a
   nice day, Cuong
 *  [michaldybczak](https://wordpress.org/support/users/michaldybczak/)
 * (@michaldybczak)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-compatibility-5/#post-9350192)
 * I confirm I get also similar errors and warnings on php 7 check. Plugin alone
   works fine but, 80% of plugins doesn’t generate anything, some have few warnings,
   about 5% have few php errors, while BackWPup is shown to have 25 Warnings and
   33 Errors. You stand out and not in a good way. Also, I don’t feel that this 
   was addressed in any way in this topic. All was just said: plugin works, don’t
   worry about it.
 * Since it really works, I’m not that concerned but still, can you comment it more?
   Is the php check bad in your opinion? If so, why? Or maybe do you plan to work
   on cleaning some code in near feature but it’s not a priority since it works?
 *  Plugin Contributor [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * (@cocreation)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-compatibility-5/#post-9351050)
 * [@michaldybczak](https://wordpress.org/support/users/michaldybczak/), basically
   what it comes down to is that we’re trying to maintain compatibility with PHP
   5.3. But many of the libraries we use have certain issues with PHP 7 in the versions
   that are still compatible with 5.3. If we fully upgrade them, they will no longer
   be backwards compatible.
 * Still a great number of users are using 5.3. Hopefully soon we can upgrade our
   minimal version, but that’s the reason right now.
 * I hope that makes sense.
 *  [michaldybczak](https://wordpress.org/support/users/michaldybczak/)
 * (@michaldybczak)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-compatibility-5/#post-9352473)
 * Yes, that’s an answer that satisfies me and I think will anyone, who seeks some
   clarification on that issue. This seems a reasonable approach and since plugin
   works, we can turn the other way ;).
    Thanks for very quick and clear answer :).

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

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

 * ![](https://ps.w.org/backwpup/assets/icon-256x256.png?rev=3236141)
 * [BackWPup – WordPress Backup & Restore Plugin](https://wordpress.org/plugins/backwpup/)
 * [Support Threads](https://wordpress.org/support/plugin/backwpup/)
 * [Active Topics](https://wordpress.org/support/plugin/backwpup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/backwpup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/backwpup/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [michaldybczak](https://wordpress.org/support/users/michaldybczak/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/php-compatibility-5/#post-9352473)
 * Status: resolved