Skip to content

[Runtime] Deprecation errors are displayed when cache is cold #60528

@bartosz-zasada

Description

@bartosz-zasada

Symfony version(s) affected

7.2.6

Description

When a deprecation error is raised while hitting any page, and the cache has just been cleared, the error is displayed directly on the screen, rather than just being logged. This may result in the red exception page with the "headers already sent" error if the page in question uses session.

How to reproduce

  1. Create a new Symfony project with the Symfony CLI tool using PHP version 8.4: symfony new --webapp my_project
  2. Install a package that triggers deprecation errors on PHP 8.4, for example winzou/state-machine-bundle: composer require winzou/state-machine-bundle:0.6.2
  3. Remove the cache and start the server: rm -rf var/cache/*, symfony serve

Possible Solution

No response

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy