Title: PHP 7.2 errors
Last modified: September 22, 2018

---

# PHP 7.2 errors

 *  Resolved [bignevola](https://wordpress.org/support/users/bignevola/)
 * (@bignevola)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-7-2-errors-8/)
 * There are some compatibility with PHP 7.2 errors:
 *     ```
         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 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-7-2-errors-8/#post-10718565)
 * At least some of those issues are completely bogus. For example, the ones relating
   to phpseclib – we are using one of the latest version of the library, so it’s
   safe to be used on PHP 7.2. If you are on a newer PHP version – some parts of
   the library just won’t be loaded (it’s there for compatibility with older PHP).
 * Static code analyzers are not 100% accurate and you should take their findings
   with a grain of salt.
 * WP Mail SMTP plugin is compatible with PHP 5.3, 5.4, 5.5, 5.6, 7.0, 7.1 and 7.2
   and works without issues on those versions.
 *  [raygulick](https://wordpress.org/support/users/raygulick/)
 * (@raygulick)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-7-2-errors-8/#post-11110450)
 * Maybe you should request a whitelisting on WP Engine’s compatibility plugin?
   
   [https://github.com/wpengine/phpcompat/wiki/Results](https://github.com/wpengine/phpcompat/wiki/Results)
 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-7-2-errors-8/#post-11110620)
 * [@raygulick](https://wordpress.org/support/users/raygulick/) This is a good suggestion,
   but you are the 1st one who provided a link to that page, so users don’t search
   for compatibility whitelists at all.
    Also, that wiki article was updated 2.5
   years ago, so it’s not maintained very well. But we still will consider that 
   and thank you for this!
 *  Plugin Contributor [Jared Atchison](https://wordpress.org/support/users/jaredatch/)
 * (@jaredatch)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-7-2-errors-8/#post-11115267)
 * [@raygulick](https://wordpress.org/support/users/raygulick/) Thanks for the heads
   up, we’ve filed an issue. Hopefully they’ll get this resolved and it will prevent
   confusion in the future. Appreciate it! 🙂
 * [https://github.com/wpengine/phpcompat/issues/222](https://github.com/wpengine/phpcompat/issues/222)

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

The topic ‘PHP 7.2 errors’ 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/)

## Tags

 * [compatibility](https://wordpress.org/support/topic-tag/compatibility/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 4 replies
 * 4 participants
 * Last reply from: [Jared Atchison](https://wordpress.org/support/users/jaredatch/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/php-7-2-errors-8/#post-11115267)
 * Status: resolved