ITPub博客

首页 > 应用开发 > IT综合 > PHP Deprecated: Assigning the return value of new by reference is deprecated

PHP Deprecated: Assigning the return value of new by reference is deprecated

原创 IT综合 作者:Michael_DD 时间:2015-06-03 22:44:07 0 删除 编辑
PHP Deprecated:  Assigning the return value of new by reference is deprecated



现象:


PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 1166
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/pear/DB.php on line 1124
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 963
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 1166
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/pear/DB.php on line 1124
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 963
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 1166




解决办法:


PHP 5.3 中直接可以使用“=”,已经弃用了“=&”。再定位错误行发现,每一行都有"=&",于是将所有的“=&”都替换成“=”

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29500582/viewspace-1684771/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 安装Nagvis
请登录后发表评论 登录
全部评论

注册时间:2014-02-22

  • 博文量
    326
  • 访问量
    2671974