{"id":10853785,"date":"2018-11-06T17:47:35","date_gmt":"2018-11-06T17:47:35","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-7-2-compatibility-errors-found\/"},"modified":"2018-11-06T17:47:35","modified_gmt":"2018-11-06T17:47:35","slug":"php-7-2-compatibility-errors-found","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-7-2-compatibility-errors-found\/","title":{"rendered":"PHP 7.2 Compatibility Errors Found"},"content":{"rendered":"<p>Background: We&#8217;re running the latest version of WP on BlueHost VPS. <\/p>\n<p>We&#8217;re looking to upgrade our PHP to 7.2 and ran the WordPress PHP Compatability Checker plugin to scan for any issues, and the Pardot plugin returned 22 warnings affecting 6 lines of code:<\/p>\n<p>879 | ERROR | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead<br \/>\n 879 | ERROR | Extension &#8216;mcrypt&#8217; is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl\/mcrypt once available instead<br \/>\n 879 | ERROR | The constant &#8220;MCRYPT_RIJNDAEL_256&#8221; is deprecated since PHP 7.1 and removed since PHP 7.2<br \/>\n 879 | ERROR | The constant &#8220;MCRYPT_MODE_ECB&#8221; is deprecated since PHP 7.1 and removed since PHP 7.2<br \/>\n 880 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead<br \/>\n 880 | ERROR | Extension &#8216;mcrypt&#8217; is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl\/mcrypt once available instead<br \/>\n 880 | ERROR | The constant &#8220;MCRYPT_RAND&#8221; is deprecated since PHP 7.1 and removed since PHP 7.2<br \/>\n 883 | ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead<br \/>\n 883 | ERROR | Extension &#8216;mcrypt&#8217; is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl\/mcrypt once available instead<br \/>\n 883 | ERROR | The constant &#8220;MCRYPT_RIJNDAEL_256&#8221; is deprecated since PHP 7.1 and removed since PHP 7.2<br \/>\n 883 | ERROR | The constant &#8220;MCRYPT_MODE_ECB&#8221; is deprecated since PHP 7.1 and removed since PHP 7.2<br \/>\n 915 | ERROR | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead<br \/>\n 915 | ERROR | Extension &#8216;mcrypt&#8217; is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl\/mcrypt once available instead<br \/>\n 915 | ERROR | The constant &#8220;MCRYPT_RIJNDAEL_256&#8221; is deprecated since PHP 7.1 and removed since PHP 7.2<br \/>\n 915 | ERROR | The constant &#8220;MCRYPT_MODE_ECB&#8221; is deprecated since PHP 7.1 and removed since PHP 7.2<br \/>\n 916 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead<br \/>\n 916 | ERROR | Extension &#8216;mcrypt&#8217; is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl\/mcrypt once available instead<br \/>\n 916 | ERROR | The constant &#8220;MCRYPT_RAND&#8221; is deprecated since PHP 7.1 and removed since PHP 7.2<br \/>\n 919 | ERROR | Function mcrypt_decrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead<br \/>\n 919 | ERROR | Extension &#8216;mcrypt&#8217; is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl\/mcrypt once available instead<br \/>\n 919 | ERROR | The constant &#8220;MCRYPT_RIJNDAEL_256&#8221; is deprecated since PHP 7.1 and removed since PHP 7.2<br \/>\n 919 | ERROR | The constant &#8220;MCRYPT_MODE_ECB&#8221; is deprecated since PHP 7.1 and removed since PHP 7.2<\/p>\n<p>Is this a false positive? I&#8217;ve checked the forum for other PHP 7.2 compatibility issues and those look like they&#8217;ve been resolved. Any help or planned updates info for this would be much appreciated. <\/p>\n","protected":false},"template":"","class_list":["post-10853785","topic","type-topic","status-publish","hentry","topic-tag-compatibility-issues","topic-tag-php","topic-tag-php-7-2"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10853785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10853785\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10853785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}