消除 PHP 中 error_log 中的 DEPRECATED 错误

发布于 2024-08-12 14:23:14 字数 149 浏览 3 评论 0原文

是否可以从 PHP error_log 中删除 DEPRECATED 消息?

我知道我可以使用

~E_DEPRECATED 

它们来阻止它们显示,但是有什么方法可以让它们远离 error_log 吗?

Is it possible to eliminate DEPRECATED messages from the PHP error_log?

I know I can use

~E_DEPRECATED 

to keep them from the display but is there any way to keep them out of the error_log as well?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼波传意 2024-08-19 14:23:14

这可能是一个错误: http://bugs.php.net/bug.php? id=48843

将该消息保留在日志之外的正确方法是替换已弃用的代码:)

This may be a bug: http://bugs.php.net/bug.php?id=48843

The right way to keep that message out of your logs is to replace the deprecated code :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文