Support » Plugin: BackWPup - WordPress Backup Plugin » PHP Compatibility

  • Resolved Joy

    (@joyously)


    I ran the PHP Compatibility Checker plugin 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)
  • Plugin Support duongcuong96

    (@duongcuong96)

    Hi @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

    Plugin Support duongcuong96

    (@duongcuong96)

    Hi @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

    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?

    @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.

    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.