显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法

By | 2010/11/30

很多朋友的php程序当php的版本升级到5.3以后,会出现”Deprecated: Assigning the return value of new by reference is deprecated in“ 显示出来。这是因为5.3以后,不能使用”=&”符号,可以直接用”=”就可以了。

所以当出现这个问题后有两种解决方法:

1. 把php的版本降级到5.3以下,但后退的不是明智的选择。

2.  对程序中”=&”符号全部用”=” 代替。

转载请注明出处: 登高望远 [ http://www.dengor.com/archives/1023.html ]

One thought on “显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法

  1. Pingback: Good Good Study » Blog Archive » 显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法

Comments are closed.