Is Post SMTP compatible with PHP 8.1?
Viewing 4 replies - 1 through 4 (of 4 total)
-
Thank you! ??
If you run:
phpcs -p plugins/post-smtp/ –standard=PHPCompatibilityWP –severity=1 –runtime-set testVersion 8.0- –extensions=phpwith phpcs configured as per https://wpvip.com/2022/07/06/how-to-prepare-your-wordpress-site-for-php-8/, yields a bunch of PHP8-specific issues, shown below. Do you plan on fixing them?
FILE: ...ugins/post-smtp/Postman/Postman-Auth/PostmanYahooAuthenticationManager.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 80 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP | | 8.1 -------------------------------------------------------------------------------- FILE: ...s/post-smtp/Postman/Postman-Auth/PostmanMicrosoftAuthenticationManager.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 82 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP | | 8.1 -------------------------------------------------------------------------------- FILE: ...gins/post-smtp/Postman/Postman-Auth/PostmanGoogleAuthenticationManager.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 92 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP | | 8.1 -------------------------------------------------------------------------------- FILE: ...stman/Postman-Mail/sendinblue/vendor/guzzlehttp/promises/src/functions.php -------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES -------------------------------------------------------------------------------- 222 | ERROR | Function each() is deprecated since PHP 7.2 and removed since | | PHP 8.0; Use a foreach loop or ArrayIterator instead 257 | ERROR | Function each() is deprecated since PHP 7.2 and removed since | | PHP 8.0; Use a foreach loop or ArrayIterator instead 313 | ERROR | Function each() is deprecated since PHP 7.2 and removed since | | PHP 8.0; Use a foreach loop or ArrayIterator instead -------------------------------------------------------------------------------- FILE: ...Mail/google-api-client/vendor/phpseclib/phpseclib/phpseclib/Crypt/Hash.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES -------------------------------------------------------------------------------- 305 | WARNING | Function mhash() is deprecated since PHP 8.1; Use the hash_*() | | functions instead 328 | WARNING | Function mhash() is deprecated since PHP 8.1; Use the hash_*() | | functions instead -------------------------------------------------------------------------------- FILE: ...il/google-api-client/vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php -------------------------------------------------------------------------------- FOUND 5 ERRORS AFFECTING 2 LINES -------------------------------------------------------------------------------- 69 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and | | removed since PHP 7.2; Use random_bytes() or OpenSSL instead 69 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since | | PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available | | instead 108 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and | | removed since PHP 7.2; Use random_bytes() or OpenSSL instead 108 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since | | PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available | | instead 108 | ERROR | The constant "MCRYPT_DEV_URANDOM" is deprecated since PHP 7.1 | | and removed since PHP 7.2 -------------------------------------------------------------------------------- FILE: ...Mail/google-api-client/vendor/phpseclib/phpseclib/phpseclib/Crypt/Base.php -------------------------------------------------------------------------------- FOUND 45 ERRORS AND 1 WARNING AFFECTING 26 LINES -------------------------------------------------------------------------------- 605 | WARNING | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as | | passed to a parameter, but will instead provide the current | | value. The parameter "$method" was used, and possibly changed | | (by reference), on line 603. 777 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 | | and removed since PHP 7.2; Use OpenSSL instead 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 810 | 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 813 | ERROR | Function mcrypt_generic() 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 818 | 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 827 | 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 837 | 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 840 | ERROR | Function mcrypt_generic_init() 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 1089 | 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 1117 | ERROR | Function mcrypt_generic() 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 1122 | 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 1131 | ERROR | Function mdecrypt_generic() is deprecated since PHP 7.1 and | | removed since PHP 7.2; Use OpenSSL instead 1134 | ERROR | Function mcrypt_generic_init() 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 1596 | ERROR | Function mcrypt_list_algorithms() 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 1675 | ERROR | Function mcrypt_module_close() 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 1676 | 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 1681 | 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 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 | Function mcrypt_module_open() is deprecated since PHP 7.1 and | | removed since PHP 7.2; Use OpenSSL instead 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 1796 | 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 1802 | 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 | The constant "MCRYPT_MODE_ECB" is deprecated since PHP 7.1 | | and removed since PHP 7.2 1807 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 | | and removed since PHP 7.2; Use OpenSSL instead 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 2500 | ERROR | Function create_function() is deprecated since PHP 7.2 and | | removed since PHP 8.0; Use an anonymous function instead -------------------------------------------------------------------------------- FILE: ...-Mail/google-api-client/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 and removed since PHP 8.0 -------------------------------------------------------------------------------- FILE: ...google-api-client/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 840 | ERROR | Passing the $glue and $pieces parameters in reverse order to | | implode has been deprecated since PHP 7.4 and is removed since | | PHP 8.0; $glue should be the first parameter and $pieces the | | second -------------------------------------------------------------------------------- FILE: ...ostman-Mail/google-api-client/vendor/guzzlehttp/promises/src/functions.php -------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES -------------------------------------------------------------------------------- 222 | ERROR | Function each() is deprecated since PHP 7.2 and removed since | | PHP 8.0; Use a foreach loop or ArrayIterator instead 257 | ERROR | Function each() is deprecated since PHP 7.2 and removed since | | PHP 8.0; Use a foreach loop or ArrayIterator instead 313 | ERROR | Function each() is deprecated since PHP 7.2 and removed since | | PHP 8.0; Use a foreach loop or ArrayIterator instead -------------------------------------------------------------------------------- FILE: ...t/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/InArray.php -------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES -------------------------------------------------------------------------------- 82 | ERROR | Since PHP 7.0, functions inspecting arguments, like | | func_get_arg(), no longer report the original value as passed to | | a parameter, but will instead provide the current value. The | | parameter "$options" was changed on line 74. 86 | ERROR | Since PHP 7.0, functions inspecting arguments, like | | func_get_arg(), no longer report the original value as passed to | | a parameter, but will instead provide the current value. The | | parameter "$options" was changed on line 74. -------------------------------------------------------------------------------- FILE: .../plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/Hostname.php -------------------------------------------------------------------------------- FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES -------------------------------------------------------------------------------- 1903 | ERROR | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as | | passed to a parameter, but will instead provide the current | | value. The parameter "$options" was changed on line 1901. 2113 | WARNING | All previously accepted values for the $type parameter of | | iconv_set_encoding() have been deprecated since PHP 5.6. | | Found 'internal_encoding' 2222 | WARNING | All previously accepted values for the $type parameter of | | iconv_set_encoding() have been deprecated since PHP 5.6. | | Found 'internal_encoding' -------------------------------------------------------------------------------- FILE: ...lugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/CreditCard.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 146 | ERROR | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as passed | | to a parameter, but will instead provide the current value. The | | parameter "$options" was changed on line 144. -------------------------------------------------------------------------------- FILE: ...ontent/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/Ip.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 66 | ERROR | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as passed to | | a parameter, but will instead provide the current value. The | | parameter "$options" was changed on line 64. -------------------------------------------------------------------------------- FILE: ...tent/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/Date.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 81 | ERROR | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as passed to | | a parameter, but will instead provide the current value. The | | parameter "$options" was changed on line 79. -------------------------------------------------------------------------------- FILE: ...t/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/Between.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 104 | ERROR | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as passed | | to a parameter, but will instead provide the current value. The | | parameter "$options" was changed on line 102. -------------------------------------------------------------------------------- FILE: ...tent/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/Isbn.php -------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES -------------------------------------------------------------------------------- 170 | ERROR | [x] Curly brace syntax for accessing array elements and string | | offsets has been deprecated in PHP 7.4 and removed in PHP | | 8.0. Found: $isbn10{$i} 188 | ERROR | [x] Curly brace syntax for accessing array elements and string | | offsets has been deprecated in PHP 7.4 and removed in PHP | | 8.0. Found: $isbn13{$i} 190 | ERROR | [x] Curly brace syntax for accessing array elements and string | | offsets has been deprecated in PHP 7.4 and removed in PHP | | 8.0. Found: $isbn13{$i} -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...gins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/StringLength.php -------------------------------------------------------------------------------- FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES -------------------------------------------------------------------------------- 89 | ERROR | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as passed | | to a parameter, but will instead provide the current value. | | The parameter "$options" was changed on line 87. 206 | WARNING | All previously accepted values for the $type parameter of | | iconv_set_encoding() have been deprecated since PHP 5.6. Found | | 'internal_encoding' 216 | WARNING | All previously accepted values for the $type parameter of | | iconv_set_encoding() have been deprecated since PHP 5.6. Found | | 'internal_encoding' -------------------------------------------------------------------------------- FILE: ...gins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/EmailAddress.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 142 | ERROR | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as passed | | to a parameter, but will instead provide the current value. The | | parameter "$options" was changed on line 140. -------------------------------------------------------------------------------- FILE: .../plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/Callback.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 158 | WARNING | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as passed | | to a parameter, but will instead provide the current value. | | The parameter "$value" was used, and possibly changed (by | | reference), on line 154. -------------------------------------------------------------------------------- FILE: .../plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/NotEmpty.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 93 | ERROR | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as passed to | | a parameter, but will instead provide the current value. The | | parameter "$options" was changed on line 91. -------------------------------------------------------------------------------- FILE: ...plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Imap.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 410 | WARNING | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as passed | | to a parameter, but will instead provide the current value. | | The parameter "$string" was used, and possibly changed (by | | reference), on line 403. -------------------------------------------------------------------------------- FILE: ...stman/Postman-Mail/mailgun/vendor/php-http/curl-client/src/PromiseCore.php -------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES -------------------------------------------------------------------------------- 79 | ERROR | Using a string as the assertion passed to assert() is deprecated | | since PHP 7.2 and removed since PHP 8.0. Found: | | 'is_resource($handle)' 80 | ERROR | Using a string as the assertion passed to assert() is deprecated | | since PHP 7.2 and removed since PHP 8.0. Found: | | 'get_resource_type($handle) === "curl"' -------------------------------------------------------------------------------- FILE: .../plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogController.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES -------------------------------------------------------------------------------- 216 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP | | 8.1 502 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP | | 8.1 -------------------------------------------------------------------------------- FILE: ...h/WORK/WP/htdocs/wp-content/plugins/post-smtp/Postman/PostmanLogFields.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 148 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP | | 8.1 -------------------------------------------------------------------------------- FILE: ...gdanh/WORK/WP/htdocs/wp-content/plugins/post-smtp/Postman/PostmanUtils.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 453 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP | | 8.1 -------------------------------------------------------------------------------- FILE: ...s/wp-content/plugins/post-smtp/freemius/includes/sdk/FreemiusWordPress.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 330 | WARNING | Since PHP 7.0, functions inspecting arguments, like | | debug_backtrace(), no longer report the original value as | | passed to a parameter, but will instead provide the current | | value. The parameter "$pUrl" was used, and possibly changed | | (by reference), on line 310. -------------------------------------------------------------------------------- FILE: ...P/htdocs/wp-content/plugins/post-smtp/freemius/includes/class-freemius.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES -------------------------------------------------------------------------------- 19534 | WARNING | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as | | passed to a parameter, but will instead provide the current | | value. The parameter "$tag" was used, and possibly changed | | (by reference), on line 19532. 19691 | WARNING | Since PHP 7.0, functions inspecting arguments, like | | func_get_args(), no longer report the original value as | | passed to a parameter, but will instead provide the current | | value. The parameter "$tag" was used, and possibly changed | | (by reference), on line 19689. -------------------------------------------------------------------------------- Time: 3 mins, 53.98 secs; Memory: 224.01MB
-
This reply was modified 2 years, 4 months ago by
Steven Stern (sterndata).
-
This reply was modified 2 years, 4 months ago by
Steven Stern (sterndata).
Hi,
We are looking into it and we will fix and release the updated version soon.
Thanks
-
This reply was modified 2 years, 4 months ago by
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Is Post SMTP compatible with PHP 8.1?’ is closed to new replies.