Title: Compatibility with PHP 7.2?
Last modified: November 16, 2018

---

# Compatibility with PHP 7.2?

 *  Resolved [orgassist](https://wordpress.org/support/users/orgassist/)
 * (@orgassist)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/compatibility-with-php-7-2-7/)
 * I got the following results from the PHP Compatibility Checker. There are quite
   a few errors so I’m cautious about updating my PHP, but also concerned about 
   upcoming end of life for PHP 5.6.
 * ———————————————————————————————————————————————–
    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: /nas/content/live/oamain/wp-content/plugins/post-smtp/Postman/Postman-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 —————————————————————————————————————————————————–
 * FILE: /nas/content/live/oamain/wp-content/plugins/post-smtp/Postman/Postman-Mail/
   google-api-client/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 2500 | WARNING | Function create_function()
   is deprecated since PHP 7.2; Use an anonymous function instead ———————————————————————————————————————————————————-
 * FILE: /nas/content/live/oamain/wp-content/plugins/post-smtp/Postman/Postman-Mail/
   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 1 replies (of 1 total)

 *  Thread Starter [orgassist](https://wordpress.org/support/users/orgassist/)
 * (@orgassist)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/compatibility-with-php-7-2-7/#post-10913046)
 * I apologize – I see this has already been answered.
    [https://wordpress.org/support/topic/php-7-1-support-3/](https://wordpress.org/support/topic/php-7-1-support-3/)

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [orgassist](https://wordpress.org/support/users/orgassist/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/compatibility-with-php-7-2-7/#post-10913046)
 * Status: resolved