• Resolved Julie Moynat

    (@juliemoynat)


    Hi,

    I’ve tested my plugins with “PHP compatibility checker” https://www.ads-software.com/plugins/php-compatibility-checker/ to test PHP 7 compatibility.

    It seems that InfiniteWP client has 22 PHP7 errors and 25 warnings. Can you check it?

    
    FILE: /wp-content/plugins/iwp-client/pclzip.class.php
    ----------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    ----------------------------------------------------------------------------------------------------------
     6132 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
     6165 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
    ----------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/amazon/guzzle/guzzle/src/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/iwp-client/lib/amazon/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: /wp-content/plugins/iwp-client/lib/amazon/guzzle/guzzle/src/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/iwp-client/lib/amazon/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: /wp-content/plugins/iwp-client/lib/amazon/guzzle/guzzle/src/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/iwp-client/lib/amazon/guzzle/guzzle/src/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/iwp-client/lib/amazon/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: /wp-content/plugins/iwp-client/lib/amazon/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: /wp-content/plugins/iwp-client/lib/amazon/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: /wp-content/plugins/iwp-client/lib/phpseclib/Net/SFTP/Stream.php
    ------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------
     135 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
     175 | ERROR   | Global with variable variables is not allowed since PHP 7.0
    ------------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Net/SCP.php
    ----------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------
     126 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ----------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Net/SSH2.php
    -----------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------
     785 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    -----------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Net/SFTP.php
    -----------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------
     267 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    -----------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Net/SSH1.php
    -----------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------
     473 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    -----------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Crypt/AES.php
    ------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------
     167 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Crypt/TripleDES.php
    ------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------
     190 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ------------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Crypt/DES.php
    ------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------
     688 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Crypt/Hash.php
    -------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------
     155 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    -------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Crypt/RC4.php
    ------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------
     180 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Crypt/Twofish.php
    ----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------
     474 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ----------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Crypt/Rijndael.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
     702 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    -----------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Crypt/RC2.php
    ------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------
     342 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Crypt/Base.php
    -------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------
     448 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    -------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Crypt/Blowfish.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
     395 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    -----------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Crypt/RSA.php
    ------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------
     461 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/Math/BigInteger.php
    ------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------
     259 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ------------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/File/X509.php
    ---------------------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
    ---------------------------------------------------------------------------------------------------------------
      307 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
     4232 | ERROR   | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
     4258 | ERROR   | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
     4325 | ERROR   | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
     4397 | ERROR   | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
    ---------------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/File/ANSI.php
    ------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------
     215 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/File/ASN1.php
    ------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------
     135 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
     250 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/phpseclib/System/SSH_Agent.php
    -------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    -------------------------------------------------------------------------------------------------------------
     119 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
     236 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    -------------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/amazon_s3_bwd_comp/lib/requestcore/requestcore.class.php
    ---------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------------
     650 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    ---------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/lib/amazon_s3_bwd_comp/sdk.class.php
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------------------------
     43 | WARNING | Function name "__aws_sdk_ua_callback" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/init.php
    --------------------------------------------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AFFECTING 4 LINES
    --------------------------------------------------------------------------------------------------------------------------------------
      95 | ERROR | Global variable '$HTTP_RAW_POST_DATA' is deprecated since PHP 5.6 and removed since PHP 7.0 - use php://input instead.
      99 | ERROR | Global variable '$HTTP_RAW_POST_DATA' is deprecated since PHP 5.6 and removed since PHP 7.0 - use php://input instead.
     100 | ERROR | Global variable '$HTTP_RAW_POST_DATA' is deprecated since PHP 5.6 and removed since PHP 7.0 - use php://input instead.
     249 | ERROR | Global variable '$HTTP_RAW_POST_DATA' is deprecated since PHP 5.6 and removed since PHP 7.0 - use php://input instead.
    --------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/backup.class.singlecall.php
    ---------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------
     3065 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
    ---------------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/iwp-client/backup.class.multicall.php
    ---------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------
     5992 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
    ---------------------------------------------------------------------------------------------------------------
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author infinitewp

    (@infinitewp)

    Hey @juliemoynat,

    InfiniteWP supports PHP7 as well as lower versions of PHP. We do have a lot of functions for backward compatibility. PHP 5 functions are executed when your server uses PHP 5 and uses PHP 7 functions when your server is PHP 7.

    And this is not the right way to test the compatibility. You should test it on the runtime, not by function definitions.

    Regards,
    Tauseef

    Thread Starter Julie Moynat

    (@juliemoynat)

    Hi @infinitewp,

    I’m currently having problems with one of my website because of PHP 7 incompatibility: some 500 errors without explanation.

    So, to find the plugin that generates these errors, I had to check PHP 7 compatibility quickly. I found the “bad plugin” and this was not InfiniteWP client but I needed to be sure.

    “PHP compatibility checker” has a whitelist so I’ve suggested them to add InfiniteWP client: https://github.com/wpengine/phpcompat/issues/144

    Regards,
    Julie

    Plugin Author infinitewp

    (@infinitewp)

    Hey Julie,

    I’m glad that you were able to find out what was the bad plugin, I just wanted to be clear that InfiniteWP supports both PHP7 and PHP5 so you shouldn’t experience any issues with regards to PHP while using InfiniteWP.

    Thanks for suggesting PHP compatibility checker to add InfiniteWP to the white-listed plugins list ??

    Regards,
    Tauseef

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘IWP client and PHP 7 compatibility’ is closed to new replies.