Skip to content

PHP 8.2: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated #44281

Closed
@gharlan

Description

@gharlan

Symfony version(s) affected

4.4, 5.3, 5.4, 6.0

Description

Using the mbstring "encoding" HTML-ENTITIES is deprecated since PHP 8.2: php/php-src#7177

mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead

These occurrences should be replaced: https://github.com/symfony/symfony/search?q=html-entities

How to reproduce

Use HtmlDumper from var-dumper component in php 8.2.

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions