解决php5.3中Deprecated: Assigning the return value of new by reference is deprecated in报错
2013-09-02 23:13
239 查看
因为我们现在php是5.3的原因,在php5.3之中可以直接用”=”,而之前因为在本地上测试都是5.3以下的php环境用的是”=&”符号。
在5.3版本之后已经不允许在程序中使用”=&”符号。如果你的网站出现了Deprecated: Assigning the return value of new by reference is deprecated in 错误,别着急,先定位到出错的文件,查找下是不是在程序中使用了”=&”,例如阿兹猫刚才定位到网站程序中发现了下图的程序,发现使用了”=&”符号,去掉‘&’符号之后程序运行正常。
本文出自 “编程之路” 博客,请务必保留此出处http://huangby.blog.51cto.com/5199904/1287601
在5.3版本之后已经不允许在程序中使用”=&”符号。如果你的网站出现了Deprecated: Assigning the return value of new by reference is deprecated in 错误,别着急,先定位到出错的文件,查找下是不是在程序中使用了”=&”,例如阿兹猫刚才定位到网站程序中发现了下图的程序,发现使用了”=&”符号,去掉‘&’符号之后程序运行正常。
本文出自 “编程之路” 博客,请务必保留此出处http://huangby.blog.51cto.com/5199904/1287601
相关文章推荐
- 解决php5.3中Deprecated: Assigning the return value of new by reference is deprecated in报错
- php5.3 中显示Deprecated: Assigning the return value of new by reference is deprecated in 的解决方法
- php5.3 中显示Deprecated: Assigning the return value of new by reference is deprecated in 的解决方法
- 解决php 5.3 deprecated 错误问题
- 解决php 5.3 deprecated 错误问题
- PHP5.3开发-解决DEPRECATED错误问题
- PHP5.3开发-解决DEPRECATED错误问题
- session在php5.3中的变化 session_is_registered() is deprecated in
- 命令行运行PHP以及解决 Deprecated: Comments starting with '#' are deprecated
- 解决PHP中Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the futu
- php5.3开始出现的Function ereg() is deprecated Error问题解决办法
- 解决PHP Deprecated: Comments starting with '#' are deprecated in 方法[php5, apache2, ubuntu]
- PHP Deprecated: Comments starting with '#' are deprecated in *.ini 警告解决办法
- PHP 5.3.x中弃用的特性 Deprecated
- PHP显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法
- php5.3 的问题 “Assigning the return value of new by reference is deprecated in xxxx”
- php5.5.15注释问题PHP Deprecated: Comments starting with '#' are deprecated in *.ini 警告解决办法
- php5.3提示Function ereg() is deprecated Error问题解决方法
- php中“Deprecated: Function split() is deprecated in”错误解决办法
- PHP5.3后在本机运行很慢的解决方法