[wp-trac] [WordPress Trac] #56304: Deprecated function mcrypt_create_iv() after PHP 7.1 update.

WordPress Trac noreply at wordpress.org
Fri Jul 29 07:23:40 UTC 2022


#56304: Deprecated function mcrypt_create_iv() after PHP 7.1 update.
------------------------------+-----------------------------
 Reporter:  hilayt24          |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:
 Severity:  major             |   Keywords:  needs-patch
  Focuses:  coding-standards  |
------------------------------+-----------------------------
 The function mcrypt_create_iv is deprecated after PHP 7.1 and is still
 used in the WordPress versions.


 {{{
 /Users/smitrathod/local sites/wp-testing-site/app/public/wp-
 includes/random_compat/random_bytes_mcrypt.php      60      17      error
 Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since
 PHP 7.2; Use random_bytes() or OpenSSL instead
 /Users/smitrathod/local sites/wp-testing-site/app/public/wp-
 includes/random_compat/random_bytes_mcrypt.php      60      17      error
 Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2;
 Use openssl (preferred) or pecl/mcrypt once available instead
 /Users/smitrathod/local sites/wp-testing-site/app/public/wp-
 includes/random_compat/random_bytes_mcrypt.php      60      54      error
 The constant \MCRYPT_DEV_URANDOM\" is deprecated since PHP 7.1 and removed
 since PHP 7.2"
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56304>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list