PHP显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法
来源:互联网 发布:做网络销售好吗 编辑:程序博客网 时间:2024/04/29 10:22
PHP显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法
发布于 2011/04/23
归档于 PHP
3,293 views
昨晚用Spreadsheet_Excel_Reader导入EXCEL内容到数据库的时候,出现了以下提示:
Deprecated: Assigning the return value of new by reference is deprecated in
定位到出错的那一行:
$this->_ole =& new OLERead();我本地环境用的是PHP/5.3.3。
下面这段话引用于因思而变
解决办法:php5.3开始后,废除了php中的”=&”符号,所以要想复制,直接用=引用即可。详细如下:
1、PHP5对象复制是采用引用的方式;
2、如果不采用引用方式,则需要在复制对象时加关键字 clone;
3、如果在复制的过程中,同时要变更某些属性,则增加函数_clone();
- PHP显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法
- PHP显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法
- PHP显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法
- php报错:Deprecated: Assigning the return value of new by reference is deprecated in
- php 报错Deprecated: Assigning the return value of new by reference is deprecated in的解决办法
- Deprecated: Assigning the return value of new by reference is deprecated in……【解决方法】
- 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 的问题 “Assigning the return value of new by reference is deprecated in xxxx”
- Assigning the return value of new by reference is deprecated in xxxx
- ECShop后台站点地图关于 Deprecated: Assigning the return value of new by reference is deprecated的错误的解决办法
- 解决php5.3中Deprecated: Assigning the return value of new by reference is deprecated in报错
- 解决Deprecated: Assigning the return value of new by reference
- 关于Assigning the return value of new by reference is deprecated的错误提示
- ecshopv2.7.3 商品批量上传中出错:Assigning the return value of new by reference is deprecated in
- PHP:错误 Deprecated: Function split() is deprecated in ... 解决办法
- php中“Deprecated: Function split() is deprecated in”错误解决办法
- Deprecated: Function split() is deprecated in ... 解决办法
- 近一年的管理经验
- 《信息检索导论》第五章总结
- android学习笔记34:自定义对话框2
- 十道营养汤的做法
- linux高端内存管理之非连续内存区(分配和释放)
- PHP显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法
- 为网站添加小图标--favicon
- 新年开始,csdn速度改善
- 递归回溯总结
- CSMA/CD协议和CSMA/CA协议有什么具体的区别?
- 在敏捷开发中编写高质量Java代码
- VB连接Mysql数据库
- Humanizer(captcha)
- 211工程大学名单