如何删除已弃用的错误

问题描述 投票:3回答:2

我正在使用PHP中的Google API密钥开发谷歌克隆搜索引擎。我收到了这个错误。我应该怎么做才能消除这个错误?

Deprecated: Assigning the return value of new by reference is deprecated in E:\wamp\www\downclone\google.com-search-engine-clone\google.com Search Engine Clone\nusoap.php on line 3703

提前致谢

php javascript html api
2个回答
6
投票
error_reporting( E_ALL ^ E_DEPRECATED );

理想情况下,您应该更改实际代码,以便它不使用已弃用的功能(在这种情况下,在引用的行中删除&之前删除new)..但是如果您没有时间/资源,则使用上面的方法将其取消。


1
投票

在PHP5中,这是不推荐使用的

&之前删除new

Check This Out

© www.soinside.com 2019 - 2024. All rights reserved.