Hello to all,
Today i’ve investigated the updraftplus tool at my php-compatibility-checker and have some surprising results about this program. There are some issues to resolve.
See here below:
FILE: /wp-content/plugins/updraftplus/restorer.php
-----------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 2 WARNINGS AFFECTING 13 LINES
-----------------------------------------------------------------------------------------------------------------
1329 | WARNING | INI directive 'safe_mode' is deprecated from PHP 5.3 and forbidden from PHP 5.4.
1329 | WARNING | INI directive 'safe_mode' is deprecated from PHP 5.3 and forbidden from PHP 5.4.
1385 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
1429 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
1432 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
1433 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
1461 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
1464 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
1465 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
1826 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
1829 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
1847 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
1953 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
1954 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
-----------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/S3.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 12 WARNINGS AFFECTING 12 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
231 | WARNING | Method name "UpdraftPlus_S3::__triggerError" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
1603 | WARNING | Method name "UpdraftPlus_S3::__getCloudFrontInvalidationBatchXML" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
1683 | WARNING | Method name "UpdraftPlus_S3::__getCloudFrontDistributionConfigXML" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
1723 | WARNING | Method name "UpdraftPlus_S3::__parseCloudFrontDistributionConfig" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
1783 | WARNING | Method name "UpdraftPlus_S3::__getCloudFrontResponse" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
1812 | WARNING | Method name "UpdraftPlus_S3::__getMimeType" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
1863 | WARNING | Method name "UpdraftPlus_S3::__getSignature" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
1878 | WARNING | Method name "UpdraftPlus_S3::__getHash" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
2168 | WARNING | Method name "UpdraftPlus_S3Request::__sortMetaHeadersCmp" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
2186 | WARNING | Method name "UpdraftPlus_S3Request::__responseWriteCallback" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
2202 | WARNING | Method name "UpdraftPlus_S3Request::__dnsBucketName" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
2226 | WARNING | Method name "UpdraftPlus_S3Request::__responseHeaderCallback" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/File/ANSI.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------------------------
182 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
191 | ERROR | 'clone' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
192 | ERROR | 'clone' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
333 | ERROR | 'clone' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
403 | ERROR | 'clone' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
422 | ERROR | 'clone' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
---------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/File/X509.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------------------------
320 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
4442 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
4467 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
4534 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
4606 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
---------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/File/ASN1.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------
134 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
248 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
---------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/System/SSH/Agent.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------
133 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
272 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
----------------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Crypt/Rijndael.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
267 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
--------------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Crypt/RC2.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------
358 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
---------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Crypt/Hash.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
154 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
----------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Crypt/RSA.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------
494 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
---------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Crypt/RC4.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------
164 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
---------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Crypt/Base.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
506 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
----------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Crypt/TripleDES.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
199 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
---------------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Net/SSH2.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
886 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
--------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Net/SFTP/Stream.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------
149 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
200 | ERROR | Global with variable variables is not allowed since PHP 7.0
---------------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Net/SCP.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------
125 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
-------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Net/SFTP.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
291 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
--------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Net/SSH1.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
518 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
--------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/includes/phpseclib/Math/BigInteger.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
246 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
---------------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/class-updraftplus.php
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------
985 | WARNING | INI directive 'safe_mode' is deprecated from PHP 5.3 and forbidden from PHP 5.4.
985 | WARNING | INI directive 'safe_mode' is deprecated from PHP 5.3 and forbidden from PHP 5.4.
2632 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
----------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/Identity/Service.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------
94 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
121 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
135 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
164 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
192 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Service/AbstractService.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
142 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword 'resource' (since version 7.0)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Collection.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
306 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Collection/ResourceIterator.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
200 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Base.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------
312 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/OpenStack.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------
132 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
136 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
206 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
210 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
396 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
397 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
400 | ERROR | 'resource' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Note: I have taken the latest updated librairys from GitHub