我已将我的 error_reporting 设置为
error_reporting = E_ALL & ~E_DEPRECATED ^ E_STRICT
在 php.ini 中。根据 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);
对此发表评论并没有改变任何事情。