PHP 8.2 Deprecated function: Function utf8_decode()

Created on 29 February 2024, 11 months ago

Problem/Motivation

On PHP8.2 I caught a warning
Deprecated function: Function utf8_decode() is deprecated in field_encrypt_decrypt()

Steps to reproduce

Switch to PHP8.2, go to any page containng filed encryption, check dblog

Proposed resolution

I would suggest to make
function_exists('mb_convert_encoding') ? mb_convert_encoding($string, 'ISO-8859-1', 'UTF-8') : $string;

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇾Belarus Andrei Haurukovich Minsk

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024