admin管理员组文章数量:1122846
My ISP has recently updated their default php version, and now a couple of plugins are raising "PHP Deprecated: Creation of dynamic property". I didn't develop these plugins and I don't know how soon they will be updated, but I believe at least one is no longer actively supported.
I would like to suppress this deprecation message as it is currently clogging up my log files. I know I can do this be running error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
. However ideally I would suppress it only in the relevant plugins, so that I still get warnings if I accidentally create a dynamic property or use some other deprecated code in my own plugins.
Is there a way to only apply the error_reporting statement around code in specific plugins?
本文标签: errorsIs there a way to suppress deprecation messages only when raised by specific plugins
版权声明:本文标题:errors - Is there a way to suppress deprecation messages only when raised by specific plugins 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736295333a1929548.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论