Ran phpcs with PHPCompatibility. mcrypt is deprecated.

FILE: .../sites/all/modules/contrib/real_aes/aes/aes.module
----------------------------------------------------------------------
FOUND 0 ERRORS AND 12 WARNINGS AFFECTING 7 LINES
----------------------------------------------------------------------
 212 | WARNING | Extension 'mcrypt' is deprecated since PHP 7.1; Use
     |         | openssl (preferred) or pecl/mcrypt once available
     |         | instead
 213 | WARNING | Function mcrypt_enc_get_key_size() is deprecated
     |         | since PHP 7.1; Use OpenSSL instead
 213 | WARNING | Extension 'mcrypt' is deprecated since PHP 7.1; Use
     |         | openssl (preferred) or pecl/mcrypt once available
     |         | instead
 228 | WARNING | Function mcrypt_generic_init() is deprecated since
     |         | PHP 7.1; Use OpenSSL instead
 228 | WARNING | Extension 'mcrypt' is deprecated since PHP 7.1; Use
     |         | openssl (preferred) or pecl/mcrypt once available
     |         | instead
 229 | WARNING | Function mdecrypt_generic() is deprecated since PHP
     |         | 7.1; Use OpenSSL instead
 230 | WARNING | Function mcrypt_generic_deinit() is deprecated since
     |         | PHP 7.1; Use OpenSSL instead
 230 | WARNING | Extension 'mcrypt' is deprecated since PHP 7.1; Use
     |         | openssl (preferred) or pecl/mcrypt once available
     |         | instead
 232 | WARNING | Function mcrypt_module_close() is deprecated since
     |         | PHP 7.1; Use OpenSSL instead
 232 | WARNING | Extension 'mcrypt' is deprecated since PHP 7.1; Use
     |         | openssl (preferred) or pecl/mcrypt once available
     |         | instead
 293 | WARNING | Function mcrypt_module_open() is deprecated since
     |         | PHP 7.1; Use OpenSSL instead
 293 | WARNING | Extension 'mcrypt' is deprecated since PHP 7.1; Use
     |         | openssl (preferred) or pecl/mcrypt once available
     |         | instead
----------------------------------------------------------------------
CommentFileSizeAuthor
#3 2925453-3.patch9.77 KBrlhawk

Comments

JayKandari created an issue. See original summary.

rlhawk’s picture

Title: [PHP 7] Extension 'mcrypt' is deprecated since PHP 7.1 » Remove AES Encryption compatibility module
Version: 7.x-1.x-dev » 7.x-2.x-dev
Category: Bug report » Task
rlhawk’s picture

Status: Active » Needs review
StatusFileSize
new9.77 KB

Here's a patch that removes the AES compatibility module, which uses the deprecated Mcrypt PHP library.

tynor’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

  • rlhawk committed b2ccf18 on 7.x-2.x
    Issue #2925453 by rlhawk, JayKandari, tynor: Remove AES Encryption...
rlhawk’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

suzymasri’s picture

For those using 1.x, issue #3118904: PHP 7.3 compatibility - Remove AES Encryption compatibility module (7.x-1.x) was created to resolve phpcs warning on 1.x branch and 1.2 tag.