-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Remove special care for E_USER_DEPRECATED #906
Conversation
👍 |
1 similar comment
👍 |
IMO its still better to keep it as some libraries do not use silencing with |
We added this in 2.8, elastica runs on 2.7, thus it already works without silencing |
The problem is E_USER_DEPRECATED is not excluded by default and thus if you don't use Symfony Debug ErrorHandler, user deprecations are taken action on, e.g. in production mode. |
Nobody reported any issue with 2.7, thus I'd say this is theoretical. |
I don't understand. Btw, how would it be possible currently to log symfonys deprecations in production mode? I guess one has to use the Debug ErrorHandler somehow in production mode? |
2.8.0 is the only released version where deprecations are silenced, this is new behavior, but bad imho. |
I don't see why you think this is new behavior. You added this silencing in sensiolabs/SensioDistributionBundle#201 and thus is it part even of the newer 2.3 releases of symfony-standard. This is not new to 2.8.0 at all. I just extracted it from bootstrap to autoload. I'm ok to remove that again. I'm just pointing out there will be a different behavior for deprecations triggered via |
@Tobion non-silenced deprecations would then go to error_log in prod, which will not break your app |
is it part even of the newer 2.3 releases
Oh really? Then I somehow messed up :-)
Still, to me, this is just accounting for the fact that we silence
deprecations now...
|
@stof unless people use an error handler in prod that transforms deprecations to exceptions. This to my knowledge exactly the reason why we silenced deprecations in the first place. As workaround for all those error handlers that treated deprecations like any other error. In the hope that those error handlers are fixed by now, I'm 👍 to merge this. |
On 2.3 isn't it?
|
This can only be merged in 2.8. The 2.3 I was referring to was about the sensio distrubution bundle bootstrap generation (which is used in 2.3). Nicolas, you need to take a break :) You are getting confused. |
For sure! Christmas time will help :-)
|
Thank you @nicolas-grekas. |
This PR was merged into the 2.8 branch. Discussion ---------- Remove special care for E_USER_DEPRECATED We don't need this anymore Commits ------- e9a1fce Remove special care for E_USER_DEPRECATED
We don't need this anymore