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

WordPress Trac noreply at wordpress.org
Fri Jul 29 14:19:24 UTC 2022

#56304: Deprecated function mcrypt_create_iv() after PHP 7.1 update.
 Reporter:  hilayt24            |       Owner:  (none)
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  External Libraries  |     Version:
 Severity:  major               |  Resolution:  invalid
 Keywords:  has-patch           |     Focuses:  coding-standards
Changes (by SergeyBiryukov):

 * keywords:  has-patch dev-feedback => has-patch
 * resolution:   => invalid
 * status:  new => closed
 * component:  General => External Libraries
 * milestone:  Awaiting Review =>


 Hi there, thanks for the ticket!

 [https://github.com/paragonie/random_compat random_compat] is an external
 library, and suggested changes would need to be submitted upstream.

 The attached patch would not work, as the function being patched here is
 itself a [source:tags/6.0.1/src/wp-
 includes/random_compat/random_bytes_mcrypt.php#L29 polyfill for
 random_bytes()] on older PHP versions where it's not available.

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

More information about the wp-trac mailing list