2010-02-11 45 views
3

当我在WAMP服务器上打开新安装的PEAR软件包时,出现很多错误。 以下是错误消息。使用PHP5.3.0的梨错误消息

我该怎么办?

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 650 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 697 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 757 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 786 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 914 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 1577 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 1607 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 2038 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 2091 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Registry.php on line 322 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Registry.php on line 1450 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Registry.php on line 1458 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Frontend.php on line 91 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Command.php on line 137 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Command.php on line 154 

Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 1026 

Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 1033 

Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\PEAR\PEAR\DependencyDB.php on line 554 

Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\PEAR\PEAR\DependencyDB.php on line 558 

Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\PEAR\PEAR\Registry.php on line 1179 

Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\PEAR\PEAR\Registry.php on line 1183 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\ChannelFile.php on line 199 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\ChannelFile.php on line 1504 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\ChannelFile.php on line 1516 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\ChannelFile.php on line 1524 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\ChannelFile.php on line 1527 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Common.php on line 492 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Common.php on line 511 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Common.php on line 530 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Common.php on line 574 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Common.php on line 607 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Common.php on line 629 

回答

7

“弃用”表示功能或功能不再被认为是一个好主意,并且将在未来的PHP版本中被删除。由于这些是关于您正在使用的库的警告,因此除了确保您的PEAR版本和软件包是最新版本外,您无需执行任何操作。您使用的库需要更新以使这些警告消失。

在未来的PHP版本中,警告中列出的功能将消失。如果你的图书馆没有更新,你将会得到致命的错误。在你进行另一次大的PHP升级之前,确保你没有弃用警告,或者检查他们是否对PHP升级文档进行检查,看看你是否会受到影响。

如果您在浏览器中看到这些错误,请调整错误报告设置。一种方法:

error_reporting(E_ALL & ~E_DEPRECATED); 
+0

好东西。这工作得很好! – Industrial 2010-02-11 20:02:05