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
----------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2925453-3.patch | 9.77 KB | rlhawk |
Comments
Comment #2
rlhawkComment #3
rlhawkHere's a patch that removes the AES compatibility module, which uses the deprecated Mcrypt PHP library.
Comment #4
tynor commentedLooks good to me.
Comment #6
rlhawkComment #8
suzymasriFor 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.