【发布时间】:2011-06-12 07:41:58
【问题描述】:
我正在尝试在 OS X 上安装 PEAR,使用内置的 PHP 5.3 安装。我这样做了:
curl http://pear.php.net/go-pear > go-pear.php
php go-pear.php
在回答了一些提示后,我开始收到大量这样的错误:
Deprecated: Assigning the return value of new by reference is deprecated in /Users/username/bin/pear/temp/PEAR.php on line 563
PHP Deprecated: Assigning the return value of new by reference is deprecated in /Users/username/bin/pear/temp/PEAR.php on line 566
现在,我明白这些错误的含义了。我只是想隐藏它们。所以在我的/private/etc/php.ini 文件中,我有以下内容:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
这在我自己的代码中隐藏了这些相同的错误。但在 PEAR 中却没有。他们似乎正在改变 error_reporting 级别。
有什么好办法解决这个问题吗?
【问题讨论】:
-
恐怕解决这个问题的最好方法是向 PEAR 的维护者提交错误报告以修复他们的代码。