dsjq62428 2018-10-17 07:57
浏览 40

在Symfony 3中禁止弃用警告

I'm currently upgrading from Symfony 2.8 to 3.4 (we use only LTS releases).

There are a lot of deprecations which will need some time to be resolved. In the meantime these messages cost a lot of memory in dev mode (sometimes even leading to OOM errors) and spam the logs (~3 MB per request), so I would like to disable them completely.

So far I found only solutions for the log spam (configure Monolog), but not for the memory problem.

There is NO call to Debug::enable(). Adding the call explicitly with appropriate error reporting level has no effect.

Disabling error_reporting for E_USER_DEPRECATED has no effect.

There is a similar question which got no responses: How to remove the deprecation warnings in Symfony 2.7? (the question is almost 3 years old, so I re-ask)

I investigated the Symfony source, but saw no possibility for changes either, as everything around error handling seems to be static.

  • 写回答



      相关推荐 更多相似问题


      • ¥15 基于香农-费诺-埃利斯编码实现对英文文本的压缩和解压缩
      • ¥15 react native ios端amap问题
      • ¥15 fortran95中5个学生分不同学号求数学语文英语计算机四门课程的每名学生的平均分以及名次以及单科成绩的平均分
      • ¥30 excel vba 执行从 1 到 100 的乘法。执行结果保存成二维数组
      • ¥15 数字电子技术基础设计实验
      • ¥15 ue5运行非常卡顿,是电脑配置原因吗
      • ¥50 有没有大佬看一下关于思科的这道题怎么做
      • ¥30 求十字路口交通灯S7-200plc,今天早上八点前。
      • ¥20 如何用智能手表oppowatch3实现个人热点功能
      • ¥15 运营商打开wanpush会有怎么样的危害