You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Create a new Symfony project with the Symfony CLI tool using PHP version 8.4: symfony new --webapp my_project
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
Remove the cache and start the server: rm -rf var/cache/*, symfony serve
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
This makes me quite sad: silencing deprecations means nobody will see them so better not, and displaying them breaks the output. And there's no possible workaround.
I'm closing because there's nothing we can do directly about this.
This might still be a bit related to #58847 and #35575, where ppl ask for more control over the way php errors are configured.
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
symfony new --webapp my_project
composer require winzou/state-machine-bundle:0.6.2
rm -rf var/cache/*
,symfony serve
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: