1.2.346. Deprecated Mb_string Encodings¶
Some encodings, available in the mb_string extensions, are deprecated. Starting with PHP 8.2, the following encodings emits a warning:
BASE64
UUENCODE
HTML-ENTITIES
html
Quoted-Printable
qprint
This applies to the mb_detect_encoding() and mb_convert_encoding() functions.
<?php
// recommended version
$base64Encoded = base64_encode('test'));
// Deprecated version
mb_convert_encoding('test', 'base64'));
?>
See also PHP 8.2: Mbstring: Base64, Uuencode, QPrint, and HTML Entity encodings are deprecated.
1.2.346.2. Connex PHP features¶
1.2.346.2.1. Suggestions¶
Use uuencode() and uudecode() functions.
1.2.346.2.2. Specs¶
Short name |
Structures/DeprecatedMbEncoding |
Rulesets |
|
Exakat since |
2.5.2 |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
High |
Available in |