Title: Compatible with PHP 7.2
Last modified: February 9, 2018

---

# Compatible with PHP 7.2

 *  Resolved [relle](https://wordpress.org/support/users/relle/)
 * (@relle)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/compatible-with-php-7-2-2/)
 * Hello,
 * Thank you for this great plugin.
 * I’d like to update my website to PHP 7.2
 * I did a PHP Compatibility Checker test with the following plugin: [https://wordpress.org/plugins/php-compatibility-checker](https://wordpress.org/plugins/php-compatibility-checker)
 * And I received the following notifications Warnings: 4 Errors: 5
 * FILE: /wp-content/plugins/wp-mail-smtp/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: /wp-content/plugins/wp-mail smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/
   Random.php
    ————————————————————- FOUND 5 ERRORS AFFECTING 2 LINES ———————————————————–
   65 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed
   since PHP 7.2; Use random_bytes() or OpenSSL instead 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 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 | 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 | The constant “MCRYPT_DEV_URANDOM” is deprecated since PHP
   7.1 and removed since PHP 7.2 ———————————————— FILE: /wp-content/plugins/wp-mail-
   smtp/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——————————————————————
 * Is it save to upgrade to PHP 7.2 ?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/compatible-with-php-7-2-2/#post-9981704)
 * Hi,
 * If you use `Gmail` mailer – it depends and needs to be tested. Deprecation notice
   doesn’t break site, it will jsut stay in your error log. I will monitor new versions
   of libraries that are used for Gmail and will update them promptly.
 * If you use any other mailer – it’s totally safe.

Viewing 1 replies (of 1 total)

The topic ‘Compatible with PHP 7.2’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/compatible-with-php-7-2-2/#post-9981704)
 * Status: resolved