【问题标题】:how to remove the deprecated error如何删除已弃用的错误
【发布时间】:2011-02-01 05:55:18
【问题描述】:

我正在使用 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


【解决方案1】:
error_reporting( E_ALL ^ E_DEPRECATED );

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

【讨论】:

    【解决方案2】:

    在 PHP5 中已弃用

    new之前删除&

    Check This Out

    【讨论】:

      猜你喜欢
      • 2013-02-15
      • 2021-02-01
      • 1970-01-01
      • 1970-01-01
      • 2022-07-20
      • 1970-01-01
      • 1970-01-01
      • 2023-02-16
      • 1970-01-01
      相关资源
      最近更新 更多