- Issue created by @heikkiy
- Merge request !6Issue 3450096: Replace utf8_encode with mb_convert_encoding to support PHP 8.2. → (Merged) created by heikkiy
- Status changed to Needs review
7 months ago 1:02pm 27 May 2024 - 🇮🇳India dev16.addweb
Thanks, @heikkiy. We can add mb_detect_encoding() to detect the source encoding
$source_encoding = mb_detect_encoding($plaintext, mb_detect_order(), true); $plaintext_utf8= mb_convert_encoding($plaintext, 'UTF-8', $source_encoding);
- 🇫🇮Finland heikkiy Oulu
Running the project through PHP Compatibility tests finds more deprecations. I tested the module with PHP 8.3 but the deprecations are old.
--------------------------------------------- FOUND 11 ERRORS AFFECTING 3 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------ 36 | ERROR | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 36 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 36 | ERROR | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2 36 | ERROR | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2 37 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead 37 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 37 | ERROR | The constant "MCRYPT_RAND" is deprecated since PHP 7.1 and removed since PHP 7.2 41 | ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 41 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 41 | ERROR | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2 41 | ERROR | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2 ------------------------------------------------------------------------------------------------------------------------------------------------------
- Status changed to Needs work
7 months ago 8:01am 8 June 2024 - Status changed to Needs review
7 months ago 8:07am 8 June 2024 - Status changed to Fixed
2 months ago 8:13am 10 October 2024 Automatically closed - issue fixed for 2 weeks with no activity.