Title: PHP 8.0 Compatiability
Last modified: September 9, 2022

---

# PHP 8.0 Compatiability

 *  Resolved [jordantrizz](https://wordpress.org/support/users/jordantrizz/)
 * (@jordantrizz)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-8-0-compatiability/)
 * Running a PHP Code Sniffer check on the Fluent SMTP code base results in the 
   following errors.
 * ./phpcs.phar -p htdocs/wp-content/plugins/fluent-smtp –standard=PHPCompatibility–
   runtime-set testVersion 8.0 -n
 * `…………………………………………………… 60 / 429 (14%)
    …………………………………………………… 120 / 429 (28%) ……………………………………………………
   180 / 429 (42%) …………………………………….EE…………… 240 / 429 (56%) …………………………………………………… 300/
   429 (70%) ……………………………SS…S.SSS…………….. 360 / 429 (84%) …………………………………………………… 420/
   429 (98%) ……… 429 / 429 (100%)
 * FILE: htdocs/wp-content/plugins/fluent-smtp/includes/libs/google-api-client/vendor/
   phpseclib/phpseclib/phpseclib/Crypt/Base.php
    ——————————————————————————————————————————————————–
   FOUND 44 ERRORS AFFECTING 24 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 ——————————————————————————————————————————————————–
 * FILE: /htdocs/wp-content/plugins/fluent-smtp/includes/libs/google-api-client/
   vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php
    ——————————————————————————————————————————————————-
   FOUND 5 ERRORS AFFECTING 2 LINES ——————————————————————————————————————————————————-
   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 69 | 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 | Function mcrypt_create_iv() 
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or 
   OpenSSL instead 108 | ERROR | The constant “MCRYPT_DEV_URANDOM” is deprecated
   since PHP 7.1 and removed since PHP 7.2 ——————————————————————————————————————————————————-

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Amimul Ihsan](https://wordpress.org/support/users/amimulihsanmahdi/)
 * (@amimulihsanmahdi)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-8-0-compatiability/#post-16003767)
 * Hello [@jordantrizz](https://wordpress.org/support/users/jordantrizz/),
 * Thank you for reporting the issue. I have forwarded the errors to the developers
   for a further lookup. Hopefully, they will take a look and fix the issue soon.
 * In the meantime, you can use a stable version like PHP 7.4.
 * Thank you
 *  Thread Starter [jordantrizz](https://wordpress.org/support/users/jordantrizz/)
 * (@jordantrizz)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-8-0-compatiability/#post-16023730)
 * Thanks Amimul,
 * Currently, PHP 8.1.10 is stable, and the library [https://github.com/googleapis/google-api-php-client](https://github.com/googleapis/google-api-php-client)
   within your plugin is quite old and problematic.
 * Should I be submitting this to the Github repository instead?
 *  Plugin Support [Amimul Ihsan](https://wordpress.org/support/users/amimulihsanmahdi/)
 * (@amimulihsanmahdi)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-8-0-compatiability/#post-16029584)
 * Hello [@jordantrizz](https://wordpress.org/support/users/jordantrizz/),
 * I have informed our developers regarding this. Hopefully, they will take a look
   at this issue.
 * Let me know the update.
 * Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP 8.0 Compatiability’ is closed to new replies.

 * ![](https://ps.w.org/fluent-smtp/assets/icon.svg?rev=2458343)
 * [FluentSMTP - WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider](https://wordpress.org/plugins/fluent-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fluent-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fluent-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/fluent-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fluent-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fluent-smtp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Amimul Ihsan](https://wordpress.org/support/users/amimulihsanmahdi/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/php-8-0-compatiability/#post-16029584)
 * Status: resolved