Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[ErrorHandler] Code highlighting on PHP 8.3 is broken on rendered exception pages #57354

Copy link
Copy link
Closed
@tscni

Description

@tscni
Issue body actions

Symfony version(s) affected

7.1.1

Description

PHP 8.2:
image

PHP 8.3:
image

How to reproduce

Throw an exception on PHP 8.3 and make sure that the error handler catches and renders it on an HTML page.

Possible Solution

In #51586 the rendering code was changed to replace all spaces with  , even those within HTML tags. That ultimately breaks the rendering.

I quickly tried to remove that replacement, change .trace-code li code to use white-space: pre; and change the final trim() to rtrim(), but the result is not quite sufficient:
image

Presumably something in the multiline splitting logic needs to be adjusted.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.