尽管有此 ini 设置,为什么我仍继续收到 PHP Deprecated 错误?
我已在 php.ini 中将 error_reporting 设置为
error_reporting = E_ALL & ~E_DEPRECATED ^ E_STRICT
。根据 phpinfo() 的数值是 22527。
但是,我们仍然记录了大量的信息,
[01-Oct-2011 13:06:36] PHP Deprecated: Assigning the return value of new by reference is deprecated in /htdocs/www/site/core.php on line 2381
[01-Oct-2011 13:06:36] PHP Deprecated: Function set_magic_quotes_runtime() is deprecated in /htdocs/www/site/core.php on line 1538
我已经看到了一些与此相关的其他问题,但没有任何我没有尝试过的解决方案。我们正在使用 VBulletin(过时的版本)。难道是要改设置吗?
我现在看到 VBulletin 的 forumdisplay.php 有一行
error_reporting(E_ALL & ~E_NOTICE);
注释掉这一点并没有改变任何东西。
I've set my error_reporting to
error_reporting = E_ALL & ~E_DEPRECATED ^ E_STRICT
in php.ini. The numerical value according to phpinfo() is 22527.
However we are still logging plenty of
[01-Oct-2011 13:06:36] PHP Deprecated: Assigning the return value of new by reference is deprecated in /htdocs/www/site/core.php on line 2381
[01-Oct-2011 13:06:36] PHP Deprecated: Function set_magic_quotes_runtime() is deprecated in /htdocs/www/site/core.php on line 1538
I've seen a few other questions about this, but not with any solutions I haven't tried. We're using (an outdated version of) VBulletin. Could that be changing the setting?
I see now that VBulletin's forumdisplay.php has a line
error_reporting(E_ALL & ~E_NOTICE);
Commenting this out didn't change anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论