PHP 7 Compatibility
-
I tried checking your plugin against PHP Compatibility checker and got the following warnings and errors:
FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/includes/class-xcloner-requirements.php ----------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ----------------------------------------------------------------------------------------------------------------- 68 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4 74 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4 ----------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/includes/class-xcloner-scheduler.php -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 219 | WARNING | Method name "Xcloner_Scheduler::__xcloner_scheduler_callback" is discouraged; PHP has reserved all method names with a double underscore prefix for future use -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/includes/class-xcloner-database.php ------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------- 496 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead ------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/restore/xcloner_restore.php ----------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------- 950 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead ----------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/http/lib/Client.php ------------------------------------------------------------------------------------------------------------ FOUND 6 ERRORS AFFECTING 6 LINES ------------------------------------------------------------------------------------------------------------ 133 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 134 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 140 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 238 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 254 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 255 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 ------------------------------------------------------------------------------------------------------------ FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/dav/lib/DAVACL/Plugin.php ---------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------- 507 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 ---------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/dav/lib/DAV/Server.php ------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES ------------------------------------------------------------------------------------------------------------- 1093 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 1127 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 1456 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 ------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/dav/lib/DAV/Browser/Plugin.php --------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES --------------------------------------------------------------------------------------------------------------------- 322 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 357 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 --------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/dav/lib/DAV/Sharing/Plugin.php --------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------- 137 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 --------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/dav/lib/CalDAV/Plugin.php ---------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------- 936 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4 ---------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/dropbox/dropbox-sdk/lib/Dropbox/RequestUtil.php -------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------------------- 14 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 -------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/dropbox/dropbox-sdk/lib/Dropbox/Security.php ------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 2 ERRORS AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------------ 60 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 60 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead ------------------------------------------------------------------------------------------------------------------------------------------------------ FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/microsoft/azure-storage/src/Common/Internal/Utilities.php ------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 3 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------- 708 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 708 | ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 709 | ERROR | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2 712 | ERROR | The constant "MCRYPT_MODE_ECB" is deprecated since PHP 7.1 and removed since PHP 7.2 ------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/paragonie/random_compat/lib/random_bytes_mcrypt.php ------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 3 ERRORS AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------------ 58 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 58 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead 58 | ERROR | The constant "MCRYPT_DEV_URANDOM" is deprecated since PHP 7.1 and removed since PHP 7.2 ------------------------------------------------------------------------------------------------------------------------------------------------------ FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/paragonie/random_compat/lib/byte_safe_strings.php ---------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ---------------------------------------------------------------------------------------------------------------------------------- 32 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 86 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 ---------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/guzzlehttp/promises/src/functions.php ---------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES ---------------------------------------------------------------------------------------------------------------------- 222 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead 257 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead 313 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead ---------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP/Stream.php ---------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------------------- 182 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found $$host ---------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/phpseclib/phpseclib/phpseclib/Crypt/Base.php ---------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 44 ERRORS AND 1 WARNING AFFECTING 25 LINES ---------------------------------------------------------------------------------------------------------------------------------------------------------- 777 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 777 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 810 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 810 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 813 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 813 | ERROR | Function mcrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 818 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 818 | ERROR | Function mcrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 827 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 827 | ERROR | Function mcrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 837 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 837 | ERROR | Function mcrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 840 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 840 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1089 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1089 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1117 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1117 | ERROR | Function mcrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1122 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1122 | ERROR | Function mcrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1131 | ERROR | Function mdecrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1134 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1134 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1596 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1596 | ERROR | Function mcrypt_list_algorithms() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1675 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1675 | ERROR | Function mcrypt_module_close() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1676 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1676 | ERROR | Function mcrypt_module_close() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1681 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1681 | ERROR | Function mcrypt_module_close() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1788 | ERROR | The constant "MCRYPT_MODE_ECB" is deprecated since PHP 7.1 and removed since PHP 7.2 1789 | ERROR | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2 1791 | ERROR | The constant "MCRYPT_MODE_NOFB" is deprecated since PHP 7.1 and removed since PHP 7.2 1792 | ERROR | The constant "MCRYPT_MODE_STREAM" is deprecated since PHP 7.1 and removed since PHP 7.2 1795 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1795 | ERROR | Function mcrypt_module_open() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1796 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1796 | ERROR | Function mcrypt_module_open() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1802 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1802 | ERROR | Function mcrypt_module_open() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1802 | ERROR | The constant "MCRYPT_MODE_ECB" is deprecated since PHP 7.1 and removed since PHP 7.2 1807 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1807 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 2495 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead ---------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php ------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 5 ERRORS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------- 65 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 65 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead 104 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 104 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead 104 | ERROR | The constant "MCRYPT_DEV_URANDOM" is deprecated since PHP 7.1 and removed since PHP 7.2 ------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/phpseclib/phpseclib/phpseclib/bootstrap.php ---------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------------- 10 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 ---------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/nspeaks/wp-content/plugins/xcloner-backup-and-restore/vendor/phpseclib/phpseclib/phpseclib/File/X509.php ---------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------------- 2715 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead ----------------------------------------------------------------------------------------------------------------------------
Can you please check and update if required?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP 7 Compatibility’ is closed to new replies.