当前位置:首页 > PHP教程 >

php5.3 中显示Deprecated: Assigning the return value of new by reference is deprecated in 的解决方

发布时间:2019-02-28 12:44:19 作者:佚名 阅读:(146)

最近在给朋友的服务器搬家,由于环境的问题,搬家之后网站并没有正常的运行起来,而是出现了错误提示,接下来吾爱编程为大家介绍一下如何解决,需要的小伙伴可以参考一下:

在5.3版本之后已经不允许在程序中使用"=&"符号。

如果出现了Deprecated: Assigning the return value of new by reference is deprecated in 错误,

先找到出错的文件,查找下是不是在程序中使用了"=&",如发现使用了"=&"符号,将 "=&" 改成 "=" 即可解决问题。

$link =& $this->links[$linkKey];
 // 改为
$link = $this->links[$linkKey];

欢迎分享转载→ php5.3 中显示Deprecated: Assigning the return value of new by reference is deprecated in 的解决方

© 2015-2021 - 吾爱编程网 版权所有 苏ICP备18033726号-1关于我们 - 网站声明 - 联系我们